Lines Matching refs:maddr

586 	struct net_if_mcast_addr *maddr;  local
597 maddr = net_if_ipv4_maddr_lookup(addr, &iface);
598 if (maddr && net_if_ipv4_maddr_is_joined(maddr)) {
602 if (!maddr) {
603 maddr = net_if_ipv4_maddr_add(iface, addr);
604 if (!maddr) {
611 maddr->record_type = param->include ? IGMPV3_CHANGE_TO_INCLUDE_MODE
613 maddr->sources_len = param->sources_len;
615 net_ipaddr_copy(&maddr->sources[i].in_addr.s_addr,
619 maddr->record_type = IGMPV3_CHANGE_TO_EXCLUDE_MODE;
623 net_if_ipv4_maddr_join(iface, maddr);
626 ret = igmpv3_send_generic(iface, maddr);
631 net_if_ipv4_maddr_leave(iface, maddr);
638 maddr->record_type =
643 net_if_mcast_monitor(iface, &maddr->address, true);
645 net_mgmt_event_notify_with_info(NET_EVENT_IPV4_MCAST_JOIN, iface, &maddr->address.in_addr,
653 struct net_if_mcast_addr *maddr; local
656 maddr = net_if_ipv4_maddr_lookup(addr, &iface);
657 if (!maddr) {
662 maddr->record_type = IGMPV3_CHANGE_TO_INCLUDE_MODE;
663 maddr->sources_len = 0;
665 ret = igmpv3_send_generic(iface, maddr);
677 net_if_ipv4_maddr_leave(iface, maddr);
679 net_if_mcast_monitor(iface, &maddr->address, false);
681 net_mgmt_event_notify_with_info(NET_EVENT_IPV4_MCAST_LEAVE, iface, &maddr->address.in_addr,
688 struct net_if_mcast_addr *maddr; local
705 maddr = net_if_ipv4_maddr_lookup(&all_systems, &iface);
706 if (maddr && net_if_ipv4_maddr_is_joined(maddr)) {
710 if (!maddr) {
711 maddr = net_if_ipv4_maddr_add(iface, &all_systems);
712 if (!maddr) {
717 net_if_ipv4_maddr_join(iface, maddr);
719 net_if_mcast_monitor(iface, &maddr->address, true);