Crate pnet_datalink [−] [src]
Support for sending and receiving data link layer packets
Modules
bpf |
Support for sending and receiving data link layer packets using the /dev/bpf device |
dummy |
Support for sending and receiving data link layer packets on a fake network managed by in memory FIFO queues. Useful for writing tests. |
Structs
Config |
A generic configuration type, encapsulating all options supported by each backend |
MacAddr |
A MAC address |
NetworkInterface |
Represents a network interface and its associated addresses |
Enums
Channel |
A channel for sending and receiving at the data link layer |
ChannelType |
Type of data link channel to present (Linux only) |
ParseMacAddrErr |
Represents an error which occurred whilst parsing a MAC address |
Traits
DataLinkReceiver |
Structure for receiving packets at the data link layer. Should be constructed using datalink_channel(). |
DataLinkSender |
Trait to enable sending $packet packets |
Functions
channel |
Create a new datalink channel for sending and receiving data |
interfaces |
Get a list of available network interfaces for the current machine. |
Type Definitions
EtherType |
Type alias for an EtherType. |