Module ethernet

Module ethernet 

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

EthernetHeader
Ethernet frame header (14 bytes)
EthernetInterfaceInfo
Ethernet interface information
EthernetLayer
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)