This file is the (intended) definitive source of the ETHER_ macros.
This commit is contained in:
parent
593f7481aa
commit
e4b54c028f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17443
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