Skip to contentSkip to conversation

Add constant for FCS/CRC length (frame check sequence)

PATCH Applied Auke Kok 2 participants 2 messages May 15, 2007 – May 21, 2007

Subsystems (2)
lore
Share & tools
lore

Auke Kok

author
#0 lore raw

PATCH 1/1 Add constant for FCS/CRC length (frame check sequence)

From: Auke Kok <[email protected]>

About a dozen drivers that have some form of crc checksumming or offloading use this constant, warranting a global define for it.

---

 include/linux/if_ether.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/if_ether.h +1 -0
index 1db774c..3213f6f 100644
@@ -33,6 +33,7 @@
 #define ETH_ZLEN	60		/* Min. octets in frame sans FCS */
 #define ETH_DATA_LEN	1500		/* Max. octets in payload	 */
 #define ETH_FRAME_LEN	1514		/* Max. octets in frame sans FCS */
+#define ETH_FCS_LEN	4		/* Octets in the FCS		 */
 
 /*
  *	These are the defined Ethernet Protocol ID's.
Applied
#1 lore raw
Quoted 10 lines · Auke Kok

From: Auke Kok <[email protected]>

About a dozen drivers that have some form of crc checksumming or offloading use this constant, warranting a global define for it.

---

 include/linux/if_ether.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

applied