Expand description
Ethernet protocol layer
This module provides Ethernet II frame handling for the network stack. It implements the NetworkLayer trait for Ethernet encapsulation/decapsulation.
§Design
The EthernetLayer manages:
- Multiple network interfaces with their MAC addresses
- Interface selection for outgoing packets
- Device access for sending/receiving frames
This design supports multiple network interfaces (eth0, eth1, wlan0, etc.).
Modules§
- ether_
type - Ethernet EtherType constants
Structs§
- Ethernet
Header - Ethernet frame header (14 bytes)
- Ethernet
Interface Info - Ethernet interface information
- Ethernet
Layer - Ethernet layer
Constants§
- ETHERNET_
HEADER_ SIZE - Ethernet header size
- ETHERNET_
MIN_ SIZE - Minimum Ethernet frame size (64 bytes including FCS)
- ETHERNET_
MTU - Maximum Transmission Unit for Ethernet (standard)