/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 41 int n_addresses = 0; in _nss_myhostname_gethostbyname4_r() local 63 n_addresses = local_gateways(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r() 64 if (n_addresses <= 0) in _nss_myhostname_gethostbyname4_r() 71 n_addresses = local_outbounds(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r() 72 if (n_addresses <= 0) in _nss_myhostname_gethostbyname4_r() 90 n_addresses = local_addresses(NULL, 0, AF_UNSPEC, &addresses); in _nss_myhostname_gethostbyname4_r() 91 if (n_addresses < 0) in _nss_myhostname_gethostbyname4_r() 92 n_addresses = 0; in _nss_myhostname_gethostbyname4_r() 99 …ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * (n_addresses > 0 ? n_addresses : 1 + sock… in _nss_myhostname_gethostbyname4_r() 112 assert(n_addresses >= 0); in _nss_myhostname_gethostbyname4_r() [all …]
|
/systemd-251/src/network/ |
D | networkd-dhcp-server.c | 181 size_t n_addresses = 0; in link_push_uplink_to_dhcp_server() local 210 if (!GREEDY_REALLOC(addresses, n_addresses + 1)) in link_push_uplink_to_dhcp_server() 213 addresses[n_addresses++] = ia; in link_push_uplink_to_dhcp_server() 233 if (!GREEDY_REALLOC(addresses, n_addresses + 1)) in link_push_uplink_to_dhcp_server() 236 addresses[n_addresses++] = ia.in; in link_push_uplink_to_dhcp_server() 265 if (!GREEDY_REALLOC(addresses, n_addresses + n)) in link_push_uplink_to_dhcp_server() 270 addresses[n_addresses++] = da[j]; in link_push_uplink_to_dhcp_server() 274 if (n_addresses <= 0) in link_push_uplink_to_dhcp_server() 277 return sd_dhcp_server_set_servers(s, what, addresses, n_addresses); in link_push_uplink_to_dhcp_server() 283 size_t *n_addresses) { in dhcp4_server_parse_dns_server_string_and_warn() argument [all …]
|
D | test-networkd-conf.c | 170 static void test_config_parse_address_one(const char *rvalue, int family, unsigned n_addresses, con… in test_config_parse_address_one() argument 184 assert_se(ordered_hashmap_size(network->addresses_by_section) == n_addresses); in test_config_parse_address_one() 185 if (n_addresses > 0) { in test_config_parse_address_one()
|
D | networkd-radv.c | 299 size_t n_addresses = 0; in network_get_ipv6_dns() local 318 if (!GREEDY_REALLOC(addresses, n_addresses + 1)) in network_get_ipv6_dns() 321 addresses[n_addresses++] = addr->in6; in network_get_ipv6_dns() 325 *ret_size = n_addresses; in network_get_ipv6_dns() 327 return n_addresses; in network_get_ipv6_dns()
|
D | networkd-network.h | 58 size_t n_addresses; member
|
/systemd-251/src/resolve/ |
D | test-resolved-etc-hosts.c | 75 assert_se(bn->n_addresses == 3); in TEST() 82 assert_se(bn->n_addresses == 1); in TEST() 87 assert_se(bn->n_addresses == 1); in TEST() 96 assert_se(bn->n_addresses == 4); in TEST() 116 assert_se(bn->n_addresses == 1); in TEST()
|
D | resolved-etc-hosts.c | 153 if (!GREEDY_REALLOC(bn->addresses, bn->n_addresses + 1)) in parse_line() 156 bn->addresses[bn->n_addresses++] = &item->address; in parse_line() 225 for (size_t m = 0; m < n->n_addresses; m++) in strip_localhost() 420 r = dns_answer_reserve(answer, bn->n_addresses); in manager_etc_hosts_lookup() 450 for (i = 0; bn && i < bn->n_addresses; i++) { in manager_etc_hosts_lookup()
|
D | resolved-dns-synthesize.c | 139 unsigned n_addresses) { in answer_add_addresses_rr() argument 147 r = dns_answer_reserve(answer, n_addresses); in answer_add_addresses_rr() 151 for (j = 0; j < n_addresses; j++) { in answer_add_addresses_rr() 170 unsigned n_addresses, in answer_add_addresses_ptr() argument 180 for (j = 0; j < n_addresses; j++) { in answer_add_addresses_ptr()
|
D | resolved-etc-hosts.h | 18 size_t n_addresses; member
|
D | resolved-link.h | 48 unsigned n_addresses; member
|
D | resolved-link.c | 824 l->n_addresses++; in link_address_new() 839 assert(a->link->n_addresses > 0); in link_address_free() 840 a->link->n_addresses--; in link_address_free()
|
/systemd-251/src/nss-resolve/ |
D | nss-resolve.c | 281 size_t n_addresses = 0; in _nss_resolve_gethostbyname4_r() local 297 n_addresses++; in _nss_resolve_gethostbyname4_r() 302 size_t idx, ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * n_addresses; in _nss_resolve_gethostbyname4_r() 437 size_t n_addresses = 0; in _nss_resolve_gethostbyname3_r() local 453 n_addresses++; in _nss_resolve_gethostbyname3_r() 461 … size_t idx, ms = ALIGN(l + 1) + n_addresses * ALIGN(alen) + (n_addresses + 2) * sizeof(char*); in _nss_resolve_gethostbyname3_r() 503 assert(i == n_addresses); in _nss_resolve_gethostbyname3_r() 504 idx += n_addresses * ALIGN(alen); in _nss_resolve_gethostbyname3_r() 508 for (i = 0; i < n_addresses; i++) in _nss_resolve_gethostbyname3_r() 512 idx += (n_addresses + 1) * sizeof(char*); in _nss_resolve_gethostbyname3_r()
|
/systemd-251/src/test/ |
D | test-nss-hosts.c | 377 int n_addresses) { in test_one_module() argument 388 for (int i = 0; i < n_addresses; i++) in test_one_module() 401 struct local_address **the_addresses, int *n_addresses) { in parse_argv() argument 461 *n_addresses = n; in parse_argv() 469 int n_addresses = 0; in run() local 474 r = parse_argv(argc, argv, &modules, &names, &addresses, &n_addresses); in run() 481 r = test_one_module(dir, *module, names, addresses, n_addresses); in run()
|
/systemd-251/src/libsystemd-network/ |
D | sd-dhcp-server.c | 1491 size_t n_addresses) { in sd_dhcp_server_set_servers() argument 1497 assert_return(addresses || n_addresses == 0, -EINVAL); in sd_dhcp_server_set_servers() 1501 if (server->servers[what].size == n_addresses && in sd_dhcp_server_set_servers() 1502 … memcmp(server->servers[what].addr, addresses, sizeof(struct in_addr) * n_addresses) == 0) in sd_dhcp_server_set_servers() 1505 if (n_addresses > 0) { in sd_dhcp_server_set_servers() 1506 c = newdup(struct in_addr, addresses, n_addresses); in sd_dhcp_server_set_servers() 1512 server->servers[what].size = n_addresses; in sd_dhcp_server_set_servers()
|
D | sd-dhcp-lease.c | 443 size_t n_addresses; in lease_parse_in_addrs() local 449 n_addresses = len / 4; in lease_parse_in_addrs() 451 addresses = newdup(struct in_addr, option, n_addresses); in lease_parse_in_addrs() 457 *n_ret = n_addresses; in lease_parse_in_addrs()
|
/systemd-251/src/systemd/ |
D | sd-dhcp-server.h | 72 size_t n_addresses);
|