gPTP Documentation
|
#include <linux_hal_common.hpp>
Public Member Functions | |
virtual net_result | send (LinkLayerAddress *addr, uint8_t *payload, size_t length, bool timestamp) |
Sends a packet to a remote address. More... | |
virtual net_result | nrecv (LinkLayerAddress *addr, uint8_t *payload, size_t &length) |
Receives a packet from a remote address. More... | |
void | disable_clear_rx_queue () |
Disables rx socket descriptor and and clears the rx queue. More... | |
void | reenable_rx_queue () |
Enables the rx socket descriptor. More... | |
virtual void | getLinkLayerAddress (LinkLayerAddress *addr) |
Gets the local link layer address. More... | |
virtual unsigned | getPayloadOffset () |
Gets the payload offset. More... | |
~LinuxNetworkInterface () | |
Public Member Functions inherited from OSNetworkInterface | |
virtual | ~OSNetworkInterface ()=0 |
Protected Member Functions | |
LinuxNetworkInterface () | |
Friends | |
class | LinuxNetworkInterfaceFactory |
Provides a Linux network generic interface
LinuxNetworkInterface::~LinuxNetworkInterface | ( | ) |
Destroys the network interface
|
inlineprotected |
Default constructor
void LinuxNetworkInterface::disable_clear_rx_queue | ( | ) |
Disables rx socket descriptor and and clears the rx queue.
|
inlinevirtual |
Gets the local link layer address.
addr | [out] Pointer to the LinkLayerAddress object |
Implements OSNetworkInterface.
|
inlinevirtual |
|
virtual |
Receives a packet from a remote address.
addr | [in] Remote link layer address |
payload | [out] Data buffer |
length | [out] Size of received data buffer |
Implements OSNetworkInterface.
void LinuxNetworkInterface::reenable_rx_queue | ( | ) |
Enables the rx socket descriptor.
|
virtual |
Sends a packet to a remote address.
addr | [in] Remote link layer address |
payload | [in] Data buffer |
length | Size of data buffer |
timestamp | TRUE if to use the event socket with the PTP multicast address. FALSE if to use a general socket. |
Implements OSNetworkInterface.