Lines Matching refs:netmask
3283 subnet = UNALIGNED_GET(&addr->s_addr) & ipv4->netmask.s_addr; in net_if_ipv4_addr_mask_cmp()
3292 ipv4->netmask.s_addr) == subnet) { in net_if_ipv4_addr_mask_cmp()
3323 if ((UNALIGNED_GET(&addr->s_addr) & ~ipv4->netmask.s_addr) == in ipv4_is_broadcast_address()
3324 ~ipv4->netmask.s_addr) { in ipv4_is_broadcast_address()
3626 struct in_addr netmask = { 0 }; in net_if_ipv4_get_netmask() local
3638 netmask = iface->config.ip.ipv4->netmask; in net_if_ipv4_get_netmask()
3642 return netmask; in net_if_ipv4_get_netmask()
3646 const struct in_addr *netmask) in net_if_ipv4_set_netmask() argument
3658 net_ipaddr_copy(&iface->config.ip.ipv4->netmask, netmask); in net_if_ipv4_set_netmask()
3664 const struct in_addr *netmask) in z_impl_net_if_ipv4_set_netmask_by_index() argument
3673 net_if_ipv4_set_netmask(iface, netmask); in z_impl_net_if_ipv4_set_netmask_by_index()
3680 const struct in_addr *netmask) in z_vrfy_net_if_ipv4_set_netmask_by_index() argument
3690 K_OOPS(k_usermode_from_copy(&netmask_addr, (void *)netmask, in z_vrfy_net_if_ipv4_set_netmask_by_index()