Explorar el Código

add new ethernet packet types ETH_P_80221, ETH_P_LOOPBACK

ETH_P_80221 is ethertype for IEEE Std 802.21 - Media Independent Handover Protocol
introduced in linux 3.15 commit b62faf3cdc875a1ac5a10696cf6ea0b12bab1596

ETH_P_LOOPBACK is the correct packet type for loopback in IEEE 802.3*
introduced in linux 3.15 commit 61ccbb684421d374fdcd7cf5d6b024b06f03ce4e

some defines were shuffled to be in ascending order and match the kernel header
Szabolcs Nagy hace 10 años
padre
commit
4a142db74f
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      include/netinet/if_ether.h

+ 4 - 2
include/netinet/if_ether.h

@@ -39,11 +39,11 @@
 #define ETH_P_PAUSE	0x8808
 #define ETH_P_SLOW	0x8809
 #define ETH_P_WCCP	0x883E
-#define ETH_P_PPP_DISC	0x8863
-#define ETH_P_PPP_SES	0x8864
 #define ETH_P_MPLS_UC	0x8847
 #define ETH_P_MPLS_MC	0x8848
 #define ETH_P_ATMMPOA	0x884c
+#define ETH_P_PPP_DISC	0x8863
+#define ETH_P_PPP_SES	0x8864
 #define ETH_P_LINK_CTL	0x886c
 #define ETH_P_ATMFATE	0x8884
 #define ETH_P_PAE	0x888E
@@ -58,6 +58,8 @@
 #define ETH_P_FCOE	0x8906
 #define ETH_P_TDLS	0x890D
 #define ETH_P_FIP	0x8914
+#define ETH_P_80221	0x8917
+#define ETH_P_LOOPBACK	0x9000
 #define ETH_P_QINQ1	0x9100
 #define ETH_P_QINQ2	0x9200
 #define ETH_P_QINQ3	0x9300