Expand description
Ethernet II frame layer implementation.
This module provides complete Ethernet II frame handling including dispatch hooks for 802.3 detection and Scapy-compatible methods.
Modules§
- offsets
- Field offsets within Ethernet header.
Structs§
- Dot3
Builder - Dot3
Layer - IEEE 802.3 frame (uses length field instead of EtherType)
- Ethernet
Builder - Ethernet
Layer - A view into an Ethernet II frame.
Enums§
- Ethernet
Frame Type - Frame type discrimination result
Constants§
- DOT3_
MAX_ LENGTH - Maximum value for 802.3 length field (values > 1500 are EtherTypes)
- ETHERNET_
HEADER_ LEN - Ethernet header length in bytes.
Statics§
- DOT3_
FIELDS - Field descriptors for dynamic access (802.3/Dot3).
- FIELDS
- Field descriptors for dynamic access (Ethernet II).
Functions§
- dispatch_
hook - Dispatch hook to determine frame type (Ethernet II vs 802.3)
- is_dot3
- Check if a frame at offset is 802.3 (not Ethernet II)
- is_
ethernet_ ii - Check if a frame at offset is Ethernet II