From 4a142db74f128011e7afafd19607234243f908ff Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 20 Jul 2014 16:02:15 +0200 Subject: [PATCH] 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 --- include/netinet/if_ether.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h index 34f9be55..4802f09f 100644 --- a/include/netinet/if_ether.h +++ b/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 -- 2.25.1