Lines Matching refs:netmask
84 /* The dhcp netmask may mask out the gateway. Add an explicit
86 * netmask or existing kernel route tables. */
149 struct in_addr netmask;
212 r = sd_dhcp_lease_get_netmask(link->dhcp_lease, &netmask);
214 prefixlen = in_addr_netmask_to_prefixlen(&netmask);
283 struct in_addr *netmask,
290 assert(netmask);
293 prefixlen = in_addr_netmask_to_prefixlen(netmask);
304 addr->broadcast.s_addr = address->s_addr | ~netmask->s_addr;
318 struct in_addr netmask;
339 r = sd_dhcp_lease_get_netmask(lease, &netmask);
341 return log_link_warning_errno(link, r, "DHCP error: no netmask: %m");
349 r = dhcp4_update_address(link, &address, &netmask, lifetime);
362 struct in_addr netmask;
379 r = sd_dhcp_lease_get_netmask(lease, &netmask);
381 return log_link_error_errno(link, r, "DHCP error: No netmask: %m");
383 prefixlen = in_addr_netmask_to_prefixlen(&netmask);
459 r = dhcp4_update_address(link, &address, &netmask, lifetime);