Loading...
Searching...
No Matches
Ethernet

Provides Ethernet header and helper functions. More...

Detailed Description

Provides Ethernet header and helper functions.

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)
 

Macro Definition Documentation

◆ ETHERNET_DATA_LEN

#define ETHERNET_DATA_LEN   (1500)

maximum number of bytes in payload

Definition at line 33 of file ethernet.h.

◆ ETHERNET_FCS_LEN

#define ETHERNET_FCS_LEN   (4)

number of bytes in the FCS (frame check sequence)

Definition at line 35 of file ethernet.h.

◆ ETHERNET_FRAME_LEN

#define ETHERNET_FRAME_LEN   (ETHERNET_DATA_LEN + sizeof(ethernet_hdr_t))

maximum number of bytes in an ethernet frame (without FCS)

Definition at line 40 of file ethernet.h.

◆ ETHERNET_MAX_LEN

#define ETHERNET_MAX_LEN   (ETHERNET_FRAME_LEN + ETHERNET_FCS_LEN)

maximum number of bytes in an ethernet frame (with FCF)

Definition at line 47 of file ethernet.h.

◆ ETHERNET_MIN_LEN

#define ETHERNET_MIN_LEN   (64)

minimum number of bytes in an ethernet frame (with FCF)

Definition at line 42 of file ethernet.h.