Browse Source

add ETH_MIN_MTU and ETH_MAX_MTU from linux v4.10

min max mtu size definitions mostly for drivers.
new in linux commits a52ad514fdf3b8a57ca4322c92d2d8d5c6182485 and
d894be57ca92c8a8819ab544d550809e8731137b
Szabolcs Nagy 8 years ago
parent
commit
f5638c22e3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/netinet/if_ether.h

+ 2 - 0
include/netinet/if_ether.h

@@ -10,6 +10,8 @@
 #define ETH_DATA_LEN	1500
 #define ETH_FRAME_LEN	1514
 #define ETH_FCS_LEN	4
+#define ETH_MIN_MTU	68
+#define ETH_MAX_MTU	0xFFFFU
 
 #define ETH_P_LOOP	0x0060
 #define ETH_P_PUP	0x0200