Lines Matching refs:n_addresses

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
310 if (!GREEDY_REALLOC(*addresses, *n_addresses + 1)) in dhcp4_server_parse_dns_server_string_and_warn()
313 (*addresses)[(*n_addresses)++] = address.in; in dhcp4_server_parse_dns_server_string_and_warn()
322 size_t n_addresses = 0; in dhcp4_server_set_dns_from_resolve_conf() local
354 r = dhcp4_server_parse_dns_server_string_and_warn(a, &addresses, &n_addresses); in dhcp4_server_set_dns_from_resolve_conf()
359 if (n_addresses <= 0) in dhcp4_server_set_dns_from_resolve_conf()
362 return sd_dhcp_server_set_dns(link->dhcp_server, addresses, n_addresses); in dhcp4_server_set_dns_from_resolve_conf()
434 if (link->network->dhcp_server_emit[type].n_addresses > 0) in dhcp4_server_configure()
440 link->network->dhcp_server_emit[type].n_addresses); in dhcp4_server_configure()
658 emit->n_addresses = 0; in config_parse_dhcp_server_emit()
695 if (!GREEDY_REALLOC(emit->addresses, emit->n_addresses + 1)) in config_parse_dhcp_server_emit()
698 emit->addresses[emit->n_addresses++] = a.in; in config_parse_dhcp_server_emit()