Loading...
Searching...
No Matches
ethernet.h File Reference

Definitions for Ethernet. More...

Detailed Description

Definitions for Ethernet.

Author
Martine Lenders mlend.nosp@m.ers@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de

Definition in file ethernet.h.

#include <stdint.h>
#include "net/ethernet/hdr.h"
#include "net/eui64.h"
+ Include dependency graph for ethernet.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)