This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] net: add IP_MULTICAST_ALL socket option definition (v2)
- From: Neil Horman <nhorman at tuxdriver dot com>
- To: libc-alpha at sourceware dot org
- Cc: Neil Horman <nhorman at tuxdriver dot com>,Andreas Schwab <schwab at redhat dot com>,Ulrich Drepper <drepper at gmail dot com>,"David S. Miller" <davem at davemloft dot net>
- Date: Thu, 15 Sep 2011 19:43:06 -0400
- Subject: [PATCH] net: add IP_MULTICAST_ALL socket option definition (v2)
- References: <1316110326-20809-1-git-send-email-nhorman@tuxdriver.com>
The Linux kernel supports an OS specific socket option IP_MULTICAST_ALL, which
is not yet defined in glibc. This patch adds said definition so that users can
take advantage of the option
Resolves http://sourceware.org/bugzilla/show_bug.cgi?id=13192
I don't have any current copyright assignment status with the FSF, but do not
consider this change to be legally significant.
Change Notes:
(V2) Brought commit up to date with contribution checklist:
http://sources.redhat.com/glibc/wiki/Contribution%20checklist
As per request from the list moderator
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Andreas Schwab <schwab@redhat.com>
CC: Ulrich Drepper <drepper@gmail.com>
CC: "David S. Miller" <davem@davemloft.net>
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/bits/in.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fa117e9..7e2b482 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-15 Neil Horman <nhorman@tuxdriver.com>
+
+ * sysdeps/unix/sysv/linux/bits/in.h: Add definition for Linux specific
+ IP level socket option IP_MULTICAST_ALL.
+
2011-09-15 Ulrich Drepper <drepper@gmail.com>
* sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
index 0aa0d66..d334a44 100644
--- a/sysdeps/unix/sysv/linux/bits/in.h
+++ b/sysdeps/unix/sysv/linux/bits/in.h
@@ -70,6 +70,7 @@
#define IP_XFRM_POLICY 17
#define IP_PASSSEC 18
#define IP_TRANSPARENT 19
+#define IP_MULTICAST_ALL 49 /* bool */
/* TProxy original addresses */
#define IP_ORIGDSTADDR 20
--
1.7.6