net_wire/ethernet/mod.rs
1//! Ethernet II semantic fields and borrowed frame views.
2//!
3//! The represented header order follows
4//! [RFC 894](https://www.rfc-editor.org/rfc/rfc894). Callers must remove any frame check
5//! sequence (FCS) before parsing; every supplied byte after the fixed header is payload.
6
7pub(crate) mod address;
8mod builder;
9pub(crate) mod ether_type;
10pub(crate) mod frame;
11
12/// Ethernet hardware addresses.
13pub use address::MacAddress;
14/// Ethernet II frame construction.
15pub use builder::{EthernetFrameBuildError, EthernetFrameBuilder};
16/// Ethernet protocol type values.
17pub use ether_type::EtherType;
18/// Ethernet II frame views.
19pub use frame::{EthernetFrame, EthernetFrameMut};