Expand description
Provides functionality for interacting with the data link layer, support for sending and receiving packets.
Modules§
- 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).
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).
Traits§
- RawReceiver
- Structure for receiving packets at the data link layer. Should be constructed using
channel()
. - RawSender
- Trait to enable sending
$packet
packets.
Functions§
- channel
- Creates a new datalink channel for sending and receiving raw packets.
Type Aliases§
- Ether
Type - Type alias for an
EtherType
.