about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-09-01 13:47:25 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-09-01 13:47:25 +0000
commit04d9a38bafddb92ab79bc0015533689e15848522 (patch)
tree84c4bc22ce1dc8e11e3d49e37d83189e922c017e /inet
parent5be255c28b24944b530bb8f91e6bde2e66992c2a (diff)
downloadglibc-04d9a38bafddb92ab79bc0015533689e15848522.tar.gz
glibc-04d9a38bafddb92ab79bc0015533689e15848522.tar.xz
glibc-04d9a38bafddb92ab79bc0015533689e15848522.zip
Add netinet/in.h values from Linux 4.2.
This patch adds new constants from Linux 4.2 to netinet/in.h:
IPPROTO_MPLS and IP_BIND_ADDRESS_NO_PORT (both in
include/uapi/linux/in.h in Linux; one directly in netinet/in.h, one in
bits/in.h in glibc).

Tested for x86_64 (testsuite, and that installed stripped shared
libraries are unchanged by the patch).

	* inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
	* sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
	macro.
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index f541c5809d..460745ebb3 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -85,6 +85,8 @@ enum
 #define IPPROTO_SCTP		IPPROTO_SCTP
     IPPROTO_UDPLITE = 136, /* UDP-Lite protocol.  */
 #define IPPROTO_UDPLITE		IPPROTO_UDPLITE
+    IPPROTO_MPLS = 137,    /* MPLS in IP.  */
+#define IPPROTO_MPLS		IPPROTO_MPLS
     IPPROTO_RAW = 255,	   /* Raw IP packets.  */
 #define IPPROTO_RAW		IPPROTO_RAW
     IPPROTO_MAX