From 6a070667d39927f5448c4a25c34e9fb3862e6fcd Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 5 May 2017 15:17:16 +0200 Subject: [PATCH] libcollectdclient: Use IPV6_JOIN_GROUP instead of IPV6_ADD_MEMBERSHIP. IPV6_JOIN_GROUP appears to be more portable. --- src/libcollectdclient/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2