Lines Matching refs:netmask
262 struct in_addr address, netmask; in dhcp4_request_prefix_route() local
276 r = sd_dhcp_lease_get_netmask(link->dhcp_lease, &netmask); in dhcp4_request_prefix_route()
284 route->dst.in.s_addr = address.s_addr & netmask.s_addr; in dhcp4_request_prefix_route()
285 route->dst_prefixlen = in4_addr_netmask_to_prefixlen(&netmask); in dhcp4_request_prefix_route()
323 struct in_addr address, netmask, prefix; in dhcp4_request_route_auto() local
336 r = sd_dhcp_lease_get_netmask(link->dhcp_lease, &netmask); in dhcp4_request_route_auto()
340 prefix.s_addr = address.s_addr & netmask.s_addr; in dhcp4_request_route_auto()
341 prefixlen = in4_addr_netmask_to_prefixlen(&netmask); in dhcp4_request_route_auto()
366 (route->dst.in.s_addr & netmask.s_addr) == prefix.s_addr) { in dhcp4_request_route_auto()
835 struct in_addr address, netmask, server; in dhcp4_request_address() local
849 r = sd_dhcp_lease_get_netmask(link->dhcp_lease, &netmask); in dhcp4_request_address()
868 prefixlen = in4_addr_netmask_to_prefixlen(&netmask); in dhcp4_request_address()