#include "../../network_stack_driver.h"
#include "../../ptp_defs.h"
#include "../../ptp_types.h"
#include "../../task_ptp.h"
#include "etherlib/cbd_table.h"
#include "etherlib/connection_block.h"
#include "etherlib/eth_interface.h"
#include "etherlib/global_state.h"
#include "etherlib/prefab/conn_blocks/custom_ethertype_connblock.h"
#include "etherlib/prefab/conn_blocks/igmp_connblock.h"
#include "etherlib/prefab/packet_parsers/ethernet_frame.h"
#include "etherlib/prefab/packet_parsers/ipv4_types.h"
#include "etherlib/timestamping.h"
#include <stdbool.h>
#include <string.h>
Go to the source code of this file.
◆ CLOSE_CONNECTION_IF_EXISTS
| #define CLOSE_CONNECTION_IF_EXISTS |
( |
|
d | ) |
|
Value: if (d >= CBD_LOWEST_DESCRIPTOR) { \
close_connection(d); \
d = 0; \
}
Definition at line 57 of file nsd_etherlib.c.
◆ ptp_nsd_get_interface_address()
| void ptp_nsd_get_interface_address |
( |
uint8_t * |
hwa | ) |
|
Fetch the Ethernet network interface hardware address.
- Parameters
-
| hwa | pointer to a 6-byte array where the hardware address is going to be stored to |
Definition at line 178 of file nsd_etherlib.c.
◆ ptp_nsd_igmp_join_leave()
| void ptp_nsd_igmp_join_leave |
( |
bool |
join | ) |
|
Join or leave IGMP groups associated with the current PTP profile.
Definition at line 40 of file nsd_etherlib.c.
◆ ptp_nsd_init()
Initialize or reinitialize the Network Stack Driver.
- Parameters
-
| init | NSD initialization settings |
Definition at line 63 of file nsd_etherlib.c.
◆ ptp_nsd_transmit_msg()
◆ ptp_receive_cb()
| static int ptp_receive_cb |
( |
const Pckt * |
packet, |
|
|
PcktSieveLayerTag |
tag |
|
) |
| |
|
static |
◆ ptp_transmit_cb()
| static void ptp_transmit_cb |
( |
uint32_t |
ts_s, |
|
|
uint32_t |
ts_ns, |
|
|
uint32_t |
tag |
|
) |
| |
|
static |
◆ custom_p2p_8023_pdel_dest
| uint8_t custom_p2p_8023_pdel_dest[6] = {} |
|
static |
◆ custom_p2p_8023_pdel_dest_valid
| bool custom_p2p_8023_pdel_dest_valid = false |
|
static |
◆ custom_p2p_8023_primary_dest
| uint8_t custom_p2p_8023_primary_dest[6] = {} |
|
static |
◆ custom_p2p_8023_primary_dest_valid
| bool custom_p2p_8023_primary_dest_valid = false |
|
static |
◆ DM
◆ PTP_L2
◆ PTP_L4_PDELAY_EVENT
| cbd PTP_L4_PDELAY_EVENT = 0 |
|
static |
◆ PTP_L4_PDELAY_GENERAL
| cbd PTP_L4_PDELAY_GENERAL = 0 |
|
static |
◆ PTP_L4_PRIMARY_EVENT
| cbd PTP_L4_PRIMARY_EVENT = 0 |
|
static |
◆ PTP_L4_PRIMARY_GENERAL
| cbd PTP_L4_PRIMARY_GENERAL = 0 |
|
static |
◆ TP
◆ zero_mac
| const uint8_t zero_mac[6] = {} |
|
static |