Ethernet

Provides Ethernet header and helper functions. More...

Detailed Description

Modules

 Ethernet header
 Ethernet header.
 

Files

file  ethernet.h
 Definitions for Ethernet.
 

Macros

#define ETHERNET_DATA_LEN   (1500)
 maximum number of bytes in payload
 
#define ETHERNET_FCS_LEN   (4)
 number of bytes in the FCS (frame check sequence)
 
#define ETHERNET_FRAME_LEN   (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))
 maximum number of bytes in an ethernet frame (without FCS)
 
#define ETHERNET_MIN_LEN   (64)
 minimum number of bytes in an ethernet frame (with FCF)
 
#define ETHERNET_MAX_LEN   (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)
 maximum number of bytes in an ethernet frame (with FCF)
 

Functions

static void ethernet_get_iid (eui64_t *eui64, uint8_t *mac)
 Generates an IPv6 interface identifier from a 48-bit MAC address. More...
 

Function Documentation

◆ ethernet_get_iid()

static void ethernet_get_iid ( eui64_t eui64,
uint8_t *  mac 
)
inlinestatic
See also
RFC 2464, section 4
Parameters
[out]eui64The resulting EUI-64.
[in]macA 48-bit MAC address. Is expected to be at least ETHERNET_ADDR_LEN long.

Definition at line 63 of file ethernet.h.