Lines Matching refs:multi_addr
238 ip4_addr_t multi_addr; member
243 …t lwip_socket_register_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr);
244 … lwip_socket_unregister_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr);
257 ip6_addr_t multi_addr; member
262 …nt lwip_socket_register_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr);
263 …d lwip_socket_unregister_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr);
3600 ip4_addr_t multi_addr; in lwip_setsockopt_impl() local
3603 inet_addr_to_ip4addr(&multi_addr, &imr->imr_multiaddr); in lwip_setsockopt_impl()
3605 if (!lwip_socket_register_membership(s, &if_addr, &multi_addr)) { in lwip_setsockopt_impl()
3610 igmp_err = igmp_joingroup(&if_addr, &multi_addr); in lwip_setsockopt_impl()
3613 igmp_err = igmp_leavegroup(&if_addr, &multi_addr); in lwip_setsockopt_impl()
3614 lwip_socket_unregister_membership(s, &if_addr, &multi_addr); in lwip_setsockopt_impl()
3701 ip6_addr_t multi_addr; in lwip_setsockopt_impl() local
3704 inet6_addr_to_ip6addr(&multi_addr, &imr->ipv6mr_multiaddr); in lwip_setsockopt_impl()
3717 if (!lwip_socket_register_mld6_membership(s, imr->ipv6mr_interface, &multi_addr)) { in lwip_setsockopt_impl()
3722 mld6_err = mld6_joingroup_netif(netif, &multi_addr); in lwip_setsockopt_impl()
3725 mld6_err = mld6_leavegroup_netif(netif, &multi_addr); in lwip_setsockopt_impl()
3726 lwip_socket_unregister_mld6_membership(s, imr->ipv6mr_interface, &multi_addr); in lwip_setsockopt_impl()
4075 lwip_socket_register_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr) in lwip_socket_register_membership() argument
4088 ip4_addr_copy(socket_ipv4_multicast_memberships[i].multi_addr, *multi_addr); in lwip_socket_register_membership()
4103 lwip_socket_unregister_membership(int s, const ip4_addr_t *if_addr, const ip4_addr_t *multi_addr) in lwip_socket_unregister_membership() argument
4115 ip4_addr_cmp(&socket_ipv4_multicast_memberships[i].multi_addr, multi_addr)) { in lwip_socket_unregister_membership()
4118 ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr); in lwip_socket_unregister_membership()
4141 ip_addr_t multi_addr, if_addr; in lwip_socket_drop_registered_memberships() local
4142 ip_addr_copy_from_ip4(multi_addr, socket_ipv4_multicast_memberships[i].multi_addr); in lwip_socket_drop_registered_memberships()
4146 ip4_addr_set_zero(&socket_ipv4_multicast_memberships[i].multi_addr); in lwip_socket_drop_registered_memberships()
4148 netconn_join_leave_group(sock->conn, &multi_addr, &if_addr, NETCONN_LEAVE); in lwip_socket_drop_registered_memberships()
4163 lwip_socket_register_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr) in lwip_socket_register_mld6_membership() argument
4176 ip6_addr_copy(socket_ipv6_multicast_memberships[i].multi_addr, *multi_addr); in lwip_socket_register_mld6_membership()
4191 lwip_socket_unregister_mld6_membership(int s, unsigned int if_idx, const ip6_addr_t *multi_addr) in lwip_socket_unregister_mld6_membership() argument
4203 ip6_addr_cmp(&socket_ipv6_multicast_memberships[i].multi_addr, multi_addr)) { in lwip_socket_unregister_mld6_membership()
4206 ip6_addr_set_zero(&socket_ipv6_multicast_memberships[i].multi_addr); in lwip_socket_unregister_mld6_membership()
4229 ip_addr_t multi_addr; in lwip_socket_drop_registered_mld6_memberships() local
4232 ip_addr_copy_from_ip6(multi_addr, socket_ipv6_multicast_memberships[i].multi_addr); in lwip_socket_drop_registered_mld6_memberships()
4237 ip6_addr_set_zero(&socket_ipv6_multicast_memberships[i].multi_addr); in lwip_socket_drop_registered_mld6_memberships()
4239 netconn_join_leave_group_netif(sock->conn, &multi_addr, if_idx, NETCONN_LEAVE); in lwip_socket_drop_registered_mld6_memberships()