summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f6ec37)
raw | patch | inline | side by side (parent: 4f6ec37)
author | Florian Forster <octo@collectd.org> | |
Fri, 5 May 2017 13:17:16 +0000 (15:17 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 5 May 2017 13:17:16 +0000 (15:17 +0200) |
IPV6_JOIN_GROUP appears to be more portable.
src/libcollectdclient/server.c | patch | blob | history |
index dfe08de9944a864c986035d17b826ea07293af4e..6443506fd0d7653fb634350d48a3c61dcb1b05ab 100644 (file)
};
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;