Lines Matching full:nigroup
143 static struct ipv6_mreq nigroup;
149 return IN6_IS_ADDR_MULTICAST(&nigroup.ipv6mr_multiaddr) &&
150 IN6_ARE_ADDR_EQUAL(&nigroup.ipv6mr_multiaddr, addr);
262 struct in6_addr *nigroup)
267 if (!dnsname || !nigroup)
275 nigroup->s6_addr32[0] = htonl(0xff020000);
276 nigroup->s6_addr32[1] = 0;
277 nigroup->s6_addr32[2] = htonl(0x00000002);
279 memset(nigroup, 0, sizeof(*nigroup));
280 nigroup->s6_addr[ 0] = 0xff;
281 nigroup->s6_addr[ 1] = 0x02;
282 nigroup->s6_addr[11] = 0x02;
284 memcpy(&nigroup->s6_addr[12], digest, 4);
307 if ((changed || forced) && !IN6_IS_ADDR_UNSPECIFIED(&nigroup.ipv6mr_multiaddr)) {
308 if (setsockopt(sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &nigroup, sizeof(nigroup)) < 0) {
311 if (inet_ntop(AF_INET6, &nigroup, niaddrbuf, sizeof(niaddrbuf)) == NULL)
317 memset(&nigroup, 0, sizeof(nigroup));
332 memset(&nigroup, 0, sizeof(nigroup));
333 nodeinfo_group(nodename, len, &nigroup.ipv6mr_multiaddr);
334 nigroup.ipv6mr_interface = 0;
335 if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, &nigroup, sizeof(nigroup)) < 0) {
338 if (inet_ntop(AF_INET6, &nigroup, niaddrbuf, sizeof(niaddrbuf)) == NULL)
344 memset(&nigroup, 0, sizeof(nigroup));
347 memset(&nigroup, 0, sizeof(nigroup));