#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 | ) |
if (d >= CBD_LOWEST_DESCRIPTOR) { close_connection(d); d = 0; } |
◆ 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 150 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 32 of file nsd_etherlib.c.
◆ ptp_nsd_init()
Initialize or reinitialize the Network Stack Driver.
- Parameters
-
tp | PTP transport type |
dm | PTP delay mechanism |
Definition at line 50 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 |
◆ DM
◆ PTP_L2
◆ PTP_L4_EVENT
◆ PTP_L4_GENERAL
◆ TP