• Home
  • Raw
  • Download

Lines Matching refs:nigroup

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