Skip to main content

Module ethernet

Module ethernet 

Source
Expand description

Ethernet II frame views, semantic fields, and caller-buffer construction. Ethernet II semantic fields and borrowed frame views.

The represented header order follows RFC 894. Callers must remove any frame check sequence (FCS) before parsing; every supplied byte after the fixed header is payload.

Structs§

EtherType
Ethernet protocol type values. A semantic Ethernet protocol type field.
EthernetFrame
Ethernet II frame views. Ethernet II frame views. Ethernet II frame views. A validated immutable borrow of one Ethernet II frame.
EthernetFrameBuilder
Ethernet II frame construction. Ethernet II frame construction. Ethernet II frame construction. An allocation-free builder for an Ethernet II header in a caller-provided buffer.
EthernetFrameMut
Ethernet II frame views. Ethernet II frame views. Ethernet II frame views. A validated mutable borrow of one Ethernet II frame.
MacAddress
Ethernet hardware addresses. A six-octet Ethernet hardware address.

Enums§

EthernetFrameBuildError
Ethernet II frame construction. Ethernet II frame construction. Ethernet II frame construction. An allocation-free failure while constructing an Ethernet II frame.