Add a new macro ETH_ZLEN which represents the minimum size of an
Ethernet frame without FCS.

Signed-off-by: Bin Meng <bmeng...@gmail.com>
---

 include/net/eth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/net/eth.h b/include/net/eth.h
index 0671be6916..7c825ecb2f 100644
--- a/include/net/eth.h
+++ b/include/net/eth.h
@@ -31,6 +31,7 @@
 
 #define ETH_ALEN 6
 #define ETH_HLEN 14
+#define ETH_ZLEN 60     /* Min. octets in frame sans FCS */
 
 struct eth_header {
     uint8_t  h_dest[ETH_ALEN];   /* destination eth addr */
-- 
2.25.1


Reply via email to