olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1684874-1.patch

00db10
commit 7c70f2272edd4efcc4525f1bbb50e92de1a27a57
00db10
Author: Mike Frysinger <vapier@gentoo.org>
00db10
Date:   Thu Jan 30 18:56:56 2014 -0500
00db10
00db10
    linux: bits/in.h: sync with latest kernel headers
00db10
    
00db10
    This pulls in the latest defines for {g,s}etsockopt.
00db10
    
00db10
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
00db10
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
00db10
00db10
diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
00db10
index 022082da1c0ca9f7..ac07d17d0e9dc9c9 100644
00db10
--- a/sysdeps/unix/sysv/linux/bits/in.h
00db10
+++ b/sysdeps/unix/sysv/linux/bits/in.h
00db10
@@ -98,13 +98,37 @@
00db10
 #define IP_RECVORIGDSTADDR   IP_ORIGDSTADDR
00db10
 
00db10
 #define IP_MINTTL       21
00db10
-
00db10
+#define IP_NODEFRAG     22
00db10
 
00db10
 /* IP_MTU_DISCOVER arguments.  */
00db10
 #define IP_PMTUDISC_DONT   0	/* Never send DF frames.  */
00db10
 #define IP_PMTUDISC_WANT   1	/* Use per route hints.  */
00db10
 #define IP_PMTUDISC_DO     2	/* Always DF.  */
00db10
 #define IP_PMTUDISC_PROBE  3	/* Ignore dst pmtu.  */
00db10
+/* Always use interface mtu (ignores dst pmtu) but don't set DF flag.
00db10
+   Also incoming ICMP frag_needed notifications will be ignored on
00db10
+   this socket to prevent accepting spoofed ones.  */
00db10
+#define IP_PMTUDISC_INTERFACE           4
00db10
+
00db10
+#define IP_MULTICAST_IF			32
00db10
+#define IP_MULTICAST_TTL 		33
00db10
+#define IP_MULTICAST_LOOP 		34
00db10
+#define IP_ADD_MEMBERSHIP		35
00db10
+#define IP_DROP_MEMBERSHIP		36
00db10
+#define IP_UNBLOCK_SOURCE		37
00db10
+#define IP_BLOCK_SOURCE			38
00db10
+#define IP_ADD_SOURCE_MEMBERSHIP	39
00db10
+#define IP_DROP_SOURCE_MEMBERSHIP	40
00db10
+#define IP_MSFILTER			41
00db10
+#define MCAST_JOIN_GROUP		42
00db10
+#define MCAST_BLOCK_SOURCE		43
00db10
+#define MCAST_UNBLOCK_SOURCE		44
00db10
+#define MCAST_LEAVE_GROUP		45
00db10
+#define MCAST_JOIN_SOURCE_GROUP		46
00db10
+#define MCAST_LEAVE_SOURCE_GROUP	47
00db10
+#define MCAST_MSFILTER			48
00db10
+#define IP_MULTICAST_ALL		49
00db10
+#define IP_UNICAST_IF			50
00db10
 
00db10
 /* To select the IP level.  */
00db10
 #define SOL_IP	0