Ethernet¶
Provides Ethernet header and helper functions.
-
void
ethernet_get_iid
(eui64_t * eui64, uint8_t * mac)¶ Generates an IPv6 interface identifier from a 48-bit MAC address.
See also
Parameters
eui64: The resulting EUI-64. mac: A 48-bit MAC address. Is expected to be at least ethernet/hdr.h::ETHERNET_ADDR_LEN
long.
-
ETHERNET_DATA_LEN
¶ maximum number of bytes in payload
1
(1500)
-
ETHERNET_FCS_LEN
¶ number of bytes in the FCS (frame check sequence)
1
(4)
-
ETHERNET_FRAME_LEN
¶ maximum number of bytes in an ethernet frame (without FCS)
1
(ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
-
ETHERNET_MIN_LEN
¶ minimum number of bytes in an ethernet frame (with FCF)
1
(64)
-
ETHERNET_MAX_LEN
¶ maximum number of bytes in an ethernet frame (with FCF)
1
(ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)