7a8b60
commit f9ac84f92f151e07586c55e14ed628d493a5929d
7a8b60
Author: Joseph Myers <joseph@codesourcery.com>
7a8b60
Date:   Fri Apr 3 18:08:28 2020 +0000
7a8b60
7a8b60
    Add IPPROTO_ETHERNET and IPPROTO_MPTCP from Linux 5.6 to netinet/in.h.
7a8b60
    
7a8b60
    This patch adds the IPPROTO_ETHERNET and IPPROTO_MPTCP constants from
7a8b60
    Linux 5.6 to glibc's netinet/in.h.
7a8b60
    
7a8b60
    Tested for x86_64.
7a8b60
7a8b60
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
7a8b60
index c2d12a04aab6c022..5880e909ff3e06fb 100644
7a8b60
--- a/inet/netinet/in.h
7a8b60
+++ b/inet/netinet/in.h
7a8b60
@@ -87,8 +87,12 @@ enum
7a8b60
 #define IPPROTO_UDPLITE		IPPROTO_UDPLITE
7a8b60
     IPPROTO_MPLS = 137,    /* MPLS in IP.  */
7a8b60
 #define IPPROTO_MPLS		IPPROTO_MPLS
7a8b60
+    IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation.  */
7a8b60
+#define IPPROTO_ETHERNET	IPPROTO_ETHERNET
7a8b60
     IPPROTO_RAW = 255,	   /* Raw IP packets.  */
7a8b60
 #define IPPROTO_RAW		IPPROTO_RAW
7a8b60
+    IPPROTO_MPTCP = 262,   /* Multipath TCP connection.  */
7a8b60
+#define IPPROTO_MPTCP		IPPROTO_MPTCP
7a8b60
     IPPROTO_MAX
7a8b60
   };
7a8b60