This file is the (intended) definitive source of the ETHER_ macros.
This commit is contained in:
parent
c7a86a3c2b
commit
4197814cc4
13
sys/net/ethernet.h
Normal file
13
sys/net/ethernet.h
Normal file
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Fundamental constants relating to ethernet.
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
#define ETHER_ADDR_LEN 6
|
||||
#define ETHER_TYPE_LEN 2
|
||||
#define ETHER_CRC_LENGTH 4
|
||||
#define ETHER_HDR_SIZE (ETHER_ADDR_LEN*2+ETHER_TYPE_LEN)
|
||||
#define ETHER_MIN_LEN 64
|
||||
#define ETHER_MAX_LEN 1518
|
Loading…
Reference in New Issue
Block a user