Expand description
Support for sending and receiving data link layer packets.
Modules§
- dummy
- Support for sending and receiving data link layer packets on a fake network managed by in memory FIFO queues. Useful for writing tests.
- linux
- Support for sending and receiving data link layer packets using Linux’s
AF_PACKET
.
Structs§
- Config
- A generic configuration type, encapsulating all options supported by each backend.
- Fanout
Option - Fanout settings (Linux only).
- MacAddr
- A MAC address.
- Network
Interface - Represents a network interface and its associated addresses.
Enums§
- Channel
- A channel for sending and receiving at the data link layer.
- Channel
Type - Type of data link channel to present (Linux only).
- Fanout
Type - Socket fanout type (Linux only).
- Parse
MacAddr Err - Represents an error which occurred whilst parsing a MAC address.
Traits§
- Data
Link Receiver - Structure for receiving packets at the data link layer. Should be constructed using
datalink_channel()
. - Data
Link Sender - 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 Aliases§
- Ether
Type - Type alias for an
EtherType
. - Interface
Type - Type alias for an
InterfaceType
.