summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2010-11-22 12:17:39 +0000
committerfcolin2010-11-22 12:17:39 +0000
commit066368cb42678efe90d63f0b87bcd26a3accfc4a (patch)
treee0c1788e2668fe08952ba782dd6adc36c3f45762
parentb5256e41b191f92d0cf12b42115eff11d0348c8d (diff)
downloadivy-c-066368cb42678efe90d63f0b87bcd26a3accfc4a.zip
ivy-c-066368cb42678efe90d63f0b87bcd26a3accfc4a.tar.gz
ivy-c-066368cb42678efe90d63f0b87bcd26a3accfc4a.tar.bz2
ivy-c-066368cb42678efe90d63f0b87bcd26a3accfc4a.tar.xz
replace IPV6_ADDMEMBERSHIP with IPV6_JOIN_GROUP exits on all platform
-rw-r--r--src/ivysocket.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ivysocket.c b/src/ivysocket.c
index dd4e20a..4f0ae58 100644
--- a/src/ivysocket.c
+++ b/src/ivysocket.c
@@ -49,13 +49,6 @@ typedef long ssize_t;
#include <signal.h>
#endif
-#ifndef IPV6_ADD_MEMBERSHIP
-#ifdef IPV6_JOIN_GROUP
-#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
-#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
-#endif
-#endif
-
#include "param.h"
#include "list.h"
#include "ivychannel.h"
@@ -1098,7 +1091,7 @@ Multicast datagrams with initial TTL 255 are unrestricted in scope.
imr.ipv6mr_multiaddr = *host;
imr.ipv6mr_interface = 0; /// TODO: Attention ca fait quoi ca ???
- if(setsockopt(client->fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, (char *)&imr,sizeof(imr)) == -1 )
+ if(setsockopt(client->fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, (char *)&imr,sizeof(imr)) == -1 )
{
perror("setsockopt() Cannot join group");
fprintf(stderr, "Does your kernel support IP multicast extensions ?\n");