Lines Matching refs:in_addr
731 (struct in_addr *)addr))) { in iface_router_lookup()
764 &router->address.in_addr, in iface_router_notify_deletion()
890 sizeof(struct in_addr)); in iface_router_add()
895 &routers[i].address.in_addr, in iface_router_add()
896 sizeof(struct in_addr)); in iface_router_add()
900 net_sprint_ipv4_addr((struct in_addr *)addr), in iface_router_add()
3454 const struct in_addr *addr) in net_if_ipv4_addr_mask_cmp()
3476 if ((ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_addr_mask_cmp()
3490 const struct in_addr *addr) in ipv4_is_broadcast_address()
3494 struct in_addr bcast; in ipv4_is_broadcast_address()
3510 bcast.s_addr = ipv4->unicast[i].ipv4.address.in_addr.s_addr | in ipv4_is_broadcast_address()
3525 const struct in_addr *addr) in net_if_ipv4_is_addr_bcast()
3545 struct net_if *net_if_ipv4_select_src_iface(const struct in_addr *dst) in net_if_ipv4_select_src_iface()
3548 const struct in_addr *src; in net_if_ipv4_select_src_iface()
3562 static uint8_t get_diff_ipv4(const struct in_addr *src, in get_diff_ipv4()
3563 const struct in_addr *dst) in get_diff_ipv4()
3578 static struct in_addr *net_if_ipv4_get_best_match(struct net_if *iface, in net_if_ipv4_get_best_match()
3579 const struct in_addr *dst, in net_if_ipv4_get_best_match()
3583 struct in_addr *src = NULL; in net_if_ipv4_get_best_match()
3594 struct in_addr subnet; in net_if_ipv4_get_best_match()
3600 if (net_ipv4_is_ll_addr(&ipv4->unicast[i].ipv4.address.in_addr) != ll) { in net_if_ipv4_get_best_match()
3604 subnet.s_addr = ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_get_best_match()
3609 src = &ipv4->unicast[i].ipv4.address.in_addr; in net_if_ipv4_get_best_match()
3619 static struct in_addr *if_ipv4_get_addr(struct net_if *iface, in if_ipv4_get_addr()
3622 struct in_addr *addr = NULL; in if_ipv4_get_addr()
3644 if (net_ipv4_is_ll_addr(&ipv4->unicast[i].ipv4.address.in_addr)) { in if_ipv4_get_addr()
3654 addr = &ipv4->unicast[i].ipv4.address.in_addr; in if_ipv4_get_addr()
3664 struct in_addr *net_if_ipv4_get_ll(struct net_if *iface, in net_if_ipv4_get_ll()
3670 struct in_addr *net_if_ipv4_get_global_addr(struct net_if *iface, in net_if_ipv4_get_global_addr()
3676 const struct in_addr *net_if_ipv4_select_src_addr(struct net_if *dst_iface, in net_if_ipv4_select_src_addr()
3677 const struct in_addr *dst) in net_if_ipv4_select_src_addr()
3679 const struct in_addr *src = NULL; in net_if_ipv4_select_src_addr()
3694 struct in_addr *addr; in net_if_ipv4_select_src_addr()
3709 struct in_addr *addr; in net_if_ipv4_select_src_addr()
3786 struct net_if_addr *net_if_ipv4_addr_lookup(const struct in_addr *addr, in net_if_ipv4_addr_lookup()
3809 ipv4->unicast[i].ipv4.address.in_addr.s_addr) { in net_if_ipv4_addr_lookup()
3828 int z_impl_net_if_ipv4_addr_lookup_by_index(const struct in_addr *addr) in z_impl_net_if_ipv4_addr_lookup_by_index()
3843 const struct in_addr *addr) in z_vrfy_net_if_ipv4_addr_lookup_by_index()
3845 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_lookup_by_index()
3854 struct in_addr net_if_ipv4_get_netmask_by_addr(struct net_if *iface, in net_if_ipv4_get_netmask_by_addr()
3855 const struct in_addr *addr) in net_if_ipv4_get_netmask_by_addr()
3857 struct in_addr netmask = { 0 }; in net_if_ipv4_get_netmask_by_addr()
3881 if ((ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_get_netmask_by_addr()
3895 const struct in_addr *addr, in net_if_ipv4_set_netmask_by_addr()
3896 const struct in_addr *netmask) in net_if_ipv4_set_netmask_by_addr()
3922 if ((ipv4->unicast[i].ipv4.address.in_addr.s_addr & in net_if_ipv4_set_netmask_by_addr()
3941 struct in_addr net_if_ipv4_get_netmask(struct net_if *iface) in net_if_ipv4_get_netmask()
3943 struct in_addr netmask = { 0 }; in net_if_ipv4_get_netmask()
3979 const struct in_addr *netmask) in net_if_ipv4_set_netmask_deprecated()
4009 const struct in_addr *netmask) in net_if_ipv4_set_netmask()
4015 const struct in_addr *netmask) in z_impl_net_if_ipv4_set_netmask_by_index()
4030 const struct in_addr *addr, in z_impl_net_if_ipv4_set_netmask_by_addr_by_index()
4031 const struct in_addr *netmask) in z_impl_net_if_ipv4_set_netmask_by_addr_by_index()
4047 const struct in_addr *netmask) in z_vrfy_net_if_ipv4_set_netmask_by_index()
4049 struct in_addr netmask_addr; in z_vrfy_net_if_ipv4_set_netmask_by_index()
4066 const struct in_addr *addr, in z_vrfy_net_if_ipv4_set_netmask_by_addr_by_index()
4067 const struct in_addr *netmask) in z_vrfy_net_if_ipv4_set_netmask_by_addr_by_index()
4069 struct in_addr ipv4_addr, netmask_addr; in z_vrfy_net_if_ipv4_set_netmask_by_addr_by_index()
4090 struct in_addr net_if_ipv4_get_gw(struct net_if *iface) in net_if_ipv4_get_gw()
4092 struct in_addr gw = { 0 }; in net_if_ipv4_get_gw()
4111 void net_if_ipv4_set_gw(struct net_if *iface, const struct in_addr *gw) in net_if_ipv4_set_gw()
4129 const struct in_addr *gw) in z_impl_net_if_ipv4_set_gw_by_index()
4145 const struct in_addr *gw) in z_vrfy_net_if_ipv4_set_gw_by_index()
4147 struct in_addr gw_addr; in z_vrfy_net_if_ipv4_set_gw_by_index()
4164 struct in_addr *addr) in ipv4_addr_find()
4174 &ipv4->unicast[i].ipv4.address.in_addr)) { in ipv4_addr_find()
4188 net_sprint_ipv4_addr(&ifaddr->address.in_addr), in net_if_ipv4_acd_succeeded()
4194 &ifaddr->address.in_addr, in net_if_ipv4_acd_succeeded()
4195 sizeof(struct in_addr)); in net_if_ipv4_acd_succeeded()
4205 net_sprint_ipv4_addr(&ifaddr->address.in_addr), in net_if_ipv4_acd_failed()
4209 &ifaddr->address.in_addr, in net_if_ipv4_acd_failed()
4210 sizeof(struct in_addr)); in net_if_ipv4_acd_failed()
4212 net_if_ipv4_addr_rm(iface, &ifaddr->address.in_addr); in net_if_ipv4_acd_failed()
4226 net_sprint_ipv4_addr(&ifaddr->address.in_addr)); in net_if_ipv4_start_acd()
4230 net_sprint_ipv4_addr(&ifaddr->address.in_addr), in net_if_ipv4_start_acd()
4238 iface, net_sprint_ipv4_addr(&ifaddr->address.in_addr)); in net_if_ipv4_start_acd()
4273 &ipv4->unicast[i].ipv4.address.in_addr)) { in net_if_start_acd()
4295 struct in_addr *addr, in net_if_ipv4_addr_add()
4337 ifaddr->address.in_addr.s4_addr32[0] = in net_if_ipv4_addr_add()
4369 &ifaddr->address.in_addr, in net_if_ipv4_addr_add()
4370 sizeof(struct in_addr)); in net_if_ipv4_addr_add()
4380 bool net_if_ipv4_addr_rm(struct net_if *iface, const struct in_addr *addr) in net_if_ipv4_addr_rm()
4416 struct in_addr *addr, in z_impl_net_if_ipv4_addr_add_by_index()
4434 struct in_addr *addr, in z_vrfy_net_if_ipv4_addr_add_by_index()
4438 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_add_by_index()
4458 const struct in_addr *addr) in z_impl_net_if_ipv4_addr_rm_by_index()
4472 const struct in_addr *addr) in z_vrfy_net_if_ipv4_addr_rm_by_index()
4474 struct in_addr addr_v4; in z_vrfy_net_if_ipv4_addr_rm_by_index()
4522 const struct in_addr *addr) in ipv4_maddr_find()
4537 if (!net_ipv4_addr_cmp(&ipv4->mcast[i].address.in_addr, in ipv4_maddr_find()
4549 const struct in_addr *addr) in net_if_ipv4_maddr_add()
4569 maddr->address.in_addr.s4_addr32[0] = addr->s4_addr32[0]; in net_if_ipv4_maddr_add()
4577 &maddr->address.in_addr, in net_if_ipv4_maddr_add()
4578 sizeof(struct in_addr)); in net_if_ipv4_maddr_add()
4587 bool net_if_ipv4_maddr_rm(struct net_if *iface, const struct in_addr *addr) in net_if_ipv4_maddr_rm()
4604 &maddr->address.in_addr, in net_if_ipv4_maddr_rm()
4605 sizeof(struct in_addr)); in net_if_ipv4_maddr_rm()
4643 struct net_if_mcast_addr *net_if_ipv4_maddr_lookup(const struct in_addr *maddr, in net_if_ipv4_maddr_lookup()
4772 struct in_addr *addr) in net_if_ipv4_router_lookup()
4778 struct in_addr *addr) in net_if_ipv4_router_find_default()
4784 struct in_addr *addr, in net_if_ipv4_router_add()
4829 net_ipv4_igmp_leave(iface, &ipv4->mcast[i].address.in_addr); in leave_ipv4_mcast_all()
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()
4917 struct net_if_mcast_addr *net_if_ipv4_maddr_lookup(const struct in_addr *addr, in net_if_ipv4_maddr_lookup()
4926 struct net_if_addr *net_if_ipv4_addr_lookup(const struct in_addr *addr, in net_if_ipv4_addr_lookup()
4935 struct in_addr *net_if_ipv4_get_global_addr(struct net_if *iface, in net_if_ipv4_get_global_addr()
5050 if (!net_ipv4_addr_cmp(&ipv4->unicast[i].ipv4.address.in_addr, in get_ifaddr()
5144 &ifaddr->address.in_addr, in remove_ipv4_ifaddr()
5145 sizeof(struct in_addr)); in remove_ipv4_ifaddr()
5199 (void *)&ifaddr->address.in_addr, in net_if_addr_ref_debug()
5264 (void *)&ifaddr->address.in_addr, in net_if_addr_unref_debug()