aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-03-13 16:44:19 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-03-13 16:45:23 +0000
commit53a4608f8de7a89a41917ffeba9cd2098d6dec86 (patch)
tree1ece8c9d337eeaf7cec50d06e89533b6bc00f184
parentd50a2c094c387c4aa1fb2597db2886cae965041e (diff)
downloadglibc-53a4608f8de7a89a41917ffeba9cd2098d6dec86.tar
glibc-53a4608f8de7a89a41917ffeba9cd2098d6dec86.tar.gz
glibc-53a4608f8de7a89a41917ffeba9cd2098d6dec86.tar.bz2
glibc-53a4608f8de7a89a41917ffeba9cd2098d6dec86.zip
Add more IPV6_* macros to sysdeps/unix/sysv/linux/bits/in.h.
Linux 4.10 adds IPV6_RECVFRAGSIZE to include/uapi/linux/in6.h, which shows that several such IPV6_* macros are missing from glibc's sysdeps/unix/sysv/linux/bits/in.h (while older ones are present). I don't know whether any of these might be deliberately omitted, but this patch adds what appear to be the missing more recent macros to glibc. Tested for x86_64. * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New macro. (IPV6_ADDR_PREFERENCES): Likewise. (IPV6_MINHOPCOUNT): Likewise. (IPV6_ORIGDSTADDR): Likewise. (IPV6_RECVORIGDSTADDR): Likewise. (IPV6_TRANSPARENT): Likewise. (IPV6_UNICAST_IF): Likewise. (IPV6_RECVFRAGSIZE): Likewise.
-rw-r--r--ChangeLog12
-rw-r--r--sysdeps/unix/sysv/linux/bits/in.h14
2 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e0bd5d032..4ae0038025 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2017-03-13 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
+ macro.
+ (IPV6_ADDR_PREFERENCES): Likewise.
+ (IPV6_MINHOPCOUNT): Likewise.
+ (IPV6_ORIGDSTADDR): Likewise.
+ (IPV6_RECVORIGDSTADDR): Likewise.
+ (IPV6_TRANSPARENT): Likewise.
+ (IPV6_UNICAST_IF): Likewise.
+ (IPV6_RECVFRAGSIZE): Likewise.
+
2017-03-13 Thorsten Kukuk <kukuk@suse.com>
* sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
index cd7fd316d8..377732b9fe 100644
--- a/sysdeps/unix/sysv/linux/bits/in.h
+++ b/sysdeps/unix/sysv/linux/bits/in.h
@@ -215,6 +215,20 @@ struct in_pktinfo
#define IPV6_RECVTCLASS 66
#define IPV6_TCLASS 67
+#define IPV6_AUTOFLOWLABEL 70
+
+/* RFC5014. */
+#define IPV6_ADDR_PREFERENCES 72
+
+/* RFC5082. */
+#define IPV6_MINHOPCOUNT 73
+
+#define IPV6_ORIGDSTADDR 74
+#define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR
+#define IPV6_TRANSPARENT 75
+#define IPV6_UNICAST_IF 76
+#define IPV6_RECVFRAGSIZE 77
+
/* Obsolete synonyms for the above. */
#if !__USE_KERNEL_IPV6_DEFS
# define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP