From: Florian Forster Date: Fri, 5 May 2017 13:17:16 +0000 (+0200) Subject: libcollectdclient: Use IPV6_JOIN_GROUP instead of IPV6_ADD_MEMBERSHIP. X-Git-Tag: collectd-5.8.0~102^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a070667d39927f5448c4a25c34e9fb3862e6fcd;p=collectd.git libcollectdclient: Use IPV6_JOIN_GROUP instead of IPV6_ADD_MEMBERSHIP. IPV6_JOIN_GROUP appears to be more portable. --- diff --git a/src/libcollectdclient/server.c b/src/libcollectdclient/server.c index dfe08de9..6443506f 100644 --- a/src/libcollectdclient/server.c +++ b/src/libcollectdclient/server.c @@ -109,7 +109,7 @@ static int server_multicast_join(lcc_listener_t *srv, }; memmove(&mreq6.ipv6mr_multiaddr, &sa->sin6_addr, sizeof(struct in6_addr)); - status = setsockopt(srv->conn, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, &mreq6, + status = setsockopt(srv->conn, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq6, sizeof(mreq6)); if (status == -1) return errno;