Home
last modified time | relevance | path

Searched refs:netmask (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/network/
Dnetworkd-dhcp4.c262 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
[all …]
/systemd-251/src/libsystemd-network/
Dsd-dhcp-server.c59 be32_t netmask; in sd_dhcp_server_configure_pool() local
68 netmask = netmask_addr.s_addr; in sd_dhcp_server_configure_pool()
70 server_off = be32toh(address->s_addr & ~netmask); in sd_dhcp_server_configure_pool()
71 broadcast_off = be32toh(~netmask); in sd_dhcp_server_configure_pool()
96 …if (server->address != address->s_addr || server->netmask != netmask || server->pool_size != size … in sd_dhcp_server_configure_pool()
102 server->netmask = netmask; in sd_dhcp_server_configure_pool()
103 server->subnet = address->s_addr & netmask; in sd_dhcp_server_configure_pool()
207 .netmask = htobe32(INADDR_ANY), in sd_dhcp_server_new()
592 SD_DHCP_OPTION_SUBNET_MASK, 4, &server->netmask); in server_send_offer_or_ack()
Ddhcp-server-internal.h60 be32_t netmask; member
Dsd-dhcp-lease.c1145 *netmask = NULL, in dhcp_lease_load() local
1182 "NETMASK", &netmask, in dhcp_lease_load()
1253 if (netmask) { in dhcp_lease_load()
1254 r = inet_pton(AF_INET, netmask, &lease->subnet_mask); in dhcp_lease_load()
1256 log_debug("Failed to parse netmask %s, ignoring.", netmask); in dhcp_lease_load()
/systemd-251/src/network/generator/
Dnetwork-generator.c562 union in_addr_union netmask; in parse_netmask_or_prefixlen() local
566 r = parse_ip_address_one(family, value, &netmask); in parse_netmask_or_prefixlen()
572 *ret = in4_addr_netmask_to_prefixlen(&netmask.in); in parse_netmask_or_prefixlen()