about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-01-11 01:54:53 +0100
committerSzabolcs Nagy <nsz@port70.net>2013-01-12 19:42:39 +0100
commit119645b6bb6578cc28718ab427e4b23860d67161 (patch)
tree8681b7aaad4835bd607d0514d121f11b830a336f /include
parentf13a47886063675d1e68b581240557fef6a3169c (diff)
downloadmusl-119645b6bb6578cc28718ab427e4b23860d67161.tar.gz
musl-119645b6bb6578cc28718ab427e4b23860d67161.tar.xz
musl-119645b6bb6578cc28718ab427e4b23860d67161.zip
add missing multicast socket options to netinet/in.h
based on linux headers add the missing MCAST_* options
under _GNU_SOURCE as they are not in the reserved namespace
(this api was originally specified by RFC 3678)
Diffstat (limited to 'include')
-rw-r--r--include/netinet/in.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/netinet/in.h b/include/netinet/in.h
index 1086f074..fcab298b 100644
--- a/include/netinet/in.h
+++ b/include/netinet/in.h
@@ -5,6 +5,8 @@
 extern "C" {
 #endif
 
+#include <features.h>
+
 #define __NEED_in_addr_t
 #define __NEED_in_port_t
 #define __NEED_sa_family_t
@@ -203,6 +205,21 @@ uint16_t ntohs(uint16_t);
 #define IP_ADD_SOURCE_MEMBERSHIP  39
 #define IP_DROP_SOURCE_MEMBERSHIP 40
 #define IP_MSFILTER        41
+#define IP_MULTICAST_ALL   49
+#define IP_UNICAST_IF      50
+
+#ifdef _GNU_SOURCE
+#define MCAST_JOIN_GROUP   42
+#define MCAST_BLOCK_SOURCE 43
+#define MCAST_UNBLOCK_SOURCE      44
+#define MCAST_LEAVE_GROUP  45
+#define MCAST_JOIN_SOURCE_GROUP   46
+#define MCAST_LEAVE_SOURCE_GROUP  47
+#define MCAST_MSFILTER     48
+
+#define MCAST_EXCLUDE 0
+#define MCAST_INCLUDE 1
+#endif
 
 #define IP_RECVRETOPTS IP_RETOPTS