Skip to main content

Module ethernet

Module ethernet 

Source
Expand description

Parsing and serialization of Ethernet frames.

Modules§

testutil
Constants useful for testing.

Structs§

EthernetEnvelope
Ethernet frame context relevant to serialization.
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.
EthernetSerializationContext
A trait for Ethernet serialization contexts.