Lines Matching refs:mcast
1186 if (!ipv6->mcast[i].is_used || in leave_mcast_all()
1187 !ipv6->mcast[i].is_joined) { in leave_mcast_all()
1191 net_ipv6_mld_leave(iface, &ipv6->mcast[i].address.in6_addr); in leave_mcast_all()
1637 ARRAY_FOR_EACH(ipv6->mcast, i) { in rejoin_ipv6_mcast_groups()
1640 if (!ipv6->mcast[i].is_used || in rejoin_ipv6_mcast_groups()
1641 net_if_ipv6_maddr_is_joined(&ipv6->mcast[i])) { in rejoin_ipv6_mcast_groups()
1645 ret = net_ipv6_mld_join(iface, &ipv6->mcast[i].address.in6_addr); in rejoin_ipv6_mcast_groups()
1648 net_sprint_ipv6_addr(&ipv6->mcast[i].address.in6_addr), in rejoin_ipv6_mcast_groups()
1652 net_sprint_ipv6_addr(&ipv6->mcast[i].address.in6_addr), in rejoin_ipv6_mcast_groups()
1678 ARRAY_FOR_EACH(ipv6->mcast, i) { in clear_joined_ipv6_mcast_groups()
1679 if (!ipv6->mcast[i].is_used) { in clear_joined_ipv6_mcast_groups()
1683 net_if_ipv6_maddr_leave(iface, &ipv6->mcast[i]); in clear_joined_ipv6_mcast_groups()
2183 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_add()
2184 if (ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_add()
2188 ipv6->mcast[i].is_used = true; in net_if_ipv6_maddr_add()
2189 ipv6->mcast[i].address.family = AF_INET6; in net_if_ipv6_maddr_add()
2190 memcpy(&ipv6->mcast[i].address.in6_addr, addr, 16); in net_if_ipv6_maddr_add()
2198 &ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_add()
2201 ifmaddr = &ipv6->mcast[i]; in net_if_ipv6_maddr_add()
2223 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_rm()
2224 if (!ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_rm()
2228 if (!net_ipv6_addr_cmp(&ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_rm()
2233 ipv6->mcast[i].is_used = false; in net_if_ipv6_maddr_rm()
2241 &ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_rm()
2271 if (!ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_foreach()
2275 cb(iface, &ipv6->mcast[i], user_data); in net_if_ipv6_maddr_foreach()
2302 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_lookup()
2303 if (!ipv6->mcast[i].is_used || in net_if_ipv6_maddr_lookup()
2304 ipv6->mcast[i].address.family != AF_INET6) { in net_if_ipv6_maddr_lookup()
2310 ipv6->mcast[i].address.in6_addr.s6_addr, in net_if_ipv6_maddr_lookup()
2316 ifmaddr = &ipv6->mcast[i]; in net_if_ipv6_maddr_lookup()
3269 &ipv6->mcast[0].address.in6_addr); in iface_ipv6_start()
4530 ARRAY_FOR_EACH(ipv4->mcast, i) { in ipv4_maddr_find()
4531 if ((is_used && !ipv4->mcast[i].is_used) || in ipv4_maddr_find()
4532 (!is_used && ipv4->mcast[i].is_used)) { in ipv4_maddr_find()
4537 if (!net_ipv4_addr_cmp(&ipv4->mcast[i].address.in_addr, in ipv4_maddr_find()
4543 return &ipv4->mcast[i]; in ipv4_maddr_find()
4632 if (!ipv4->mcast[i].is_used) { in net_if_ipv4_maddr_foreach()
4636 cb(iface, &ipv4->mcast[i], user_data); in net_if_ipv4_maddr_foreach()
4823 ARRAY_FOR_EACH(ipv4->mcast, i) { in leave_ipv4_mcast_all()
4824 if (!ipv4->mcast[i].is_used || in leave_ipv4_mcast_all()
4825 !ipv4->mcast[i].is_joined) { in leave_ipv4_mcast_all()
4829 net_ipv4_igmp_leave(iface, &ipv4->mcast[i].address.in_addr); in leave_ipv4_mcast_all()
4862 ARRAY_FOR_EACH(ipv4->mcast, i) { in rejoin_ipv4_mcast_groups()
4865 if (!ipv4->mcast[i].is_used || in rejoin_ipv4_mcast_groups()
4866 net_if_ipv4_maddr_is_joined(&ipv4->mcast[i])) { in rejoin_ipv4_mcast_groups()
4870 ret = net_ipv4_igmp_join(iface, &ipv4->mcast[i].address.in_addr, NULL); in rejoin_ipv4_mcast_groups()
4873 net_sprint_ipv4_addr(&ipv4->mcast[i].address.in_addr), in rejoin_ipv4_mcast_groups()
4877 net_sprint_ipv4_addr(&ipv4->mcast[i].address.in_addr), in rejoin_ipv4_mcast_groups()
4903 ARRAY_FOR_EACH(ipv4->mcast, i) { in clear_joined_ipv4_mcast_groups()
4904 if (!ipv4->mcast[i].is_used) { in clear_joined_ipv4_mcast_groups()
4908 net_if_ipv4_maddr_leave(iface, &ipv4->mcast[i]); in clear_joined_ipv4_mcast_groups()