Module ethernet

Source
Expand description

Parsing and serialization of Ethernet frames.

Modules§

testutil
Constants useful for testing.

Structs§

EthernetFrame
An Ethernet frame.
EthernetFrameBuilder
A builder for Ethernet frames.

Enums§

EtherType
An EtherType number.
EthernetFrameLengthCheck
Whether or not an Ethernet frame’s length should be checked during parsing.

Constants§

ETHERNET_HDR_LEN_NO_TAG
The length of an Ethernet header when it has no tags.
ETHERNET_MIN_BODY_LEN_NO_TAG
The minimum length of an Ethernet frame’s body when the header contains no tags.

Traits§

EthernetIpExt
An extension trait adding IP-related functionality to Ipv4 and Ipv6.