Skip to main content

Module ethernet

Module ethernet 

Source
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§

Dot3Builder
Dot3Layer
IEEE 802.3 frame (uses length field instead of EtherType)
EthernetBuilder
EthernetLayer
A view into an Ethernet II frame.

Enums§

EthernetFrameType
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