Searched refs:n_addresses (Results 1 - 4 of 4) sorted by relevance

/systemd/src/nss-myhostname/
H A Dnss-myhostname.c58 int n_addresses = 0, lo_ifi; local
82 n_addresses = local_gateways(NULL, 0, AF_UNSPEC, &addresses);
83 if (n_addresses <= 0) {
106 n_addresses = local_addresses(NULL, 0, AF_UNSPEC, &addresses);
107 if (n_addresses < 0)
108 n_addresses = 0;
115 lo_ifi = n_addresses <= 0 ? LOOPBACK_IFINDEX : 0;
118 ms = ALIGN(l+1) + ALIGN(sizeof(struct gaih_addrtuple)) * (n_addresses > 0 ? n_addresses : 2);
130 if (n_addresses <
187 fill_in_hostent( const char *canonical, const char *additional, int af, struct local_address *addresses, unsigned n_addresses, uint32_t local_address_ipv4, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp, char **canonp) argument
329 int n_addresses = 0; local
410 int n_addresses = 0; local
[all...]
/systemd/src/resolve/
H A Dresolved-dns-synthesize.c155 unsigned n_addresses) {
163 r = dns_answer_reserve(answer, n_addresses);
167 for (j = 0; j < n_addresses; j++) {
186 unsigned n_addresses,
195 for (j = 0; j < n_addresses; j++) {
151 answer_add_addresses_rr( DnsAnswer **answer, const char *name, struct local_address *addresses, unsigned n_addresses) argument
182 answer_add_addresses_ptr( DnsAnswer **answer, const char *name, struct local_address *addresses, unsigned n_addresses, int af, const union in_addr_union *match) argument
/systemd/src/network/
H A Dnetworkd-link.c747 size_t n_addresses = 0, n_allocated = 0; local
762 if (!GREEDY_REALLOC(addresses, n_allocated, n_addresses + 1))
765 addresses[n_addresses++] = ia;
776 if (!GREEDY_REALLOC(addresses, n_allocated, n_addresses + n))
779 memcpy(addresses + n_addresses, da, n * sizeof(struct in_addr));
780 n_addresses += n;
784 if (n_addresses <= 0)
787 return sd_dhcp_server_set_dns(s, addresses, n_addresses);
792 size_t n_addresses = 0, n_allocated = 0; local
807 if (!GREEDY_REALLOC(addresses, n_allocated, n_addresses
[all...]
/systemd/src/libsystemd-network/
H A Dsd-dhcp-lease.c397 size_t n_addresses; local
403 n_addresses = len / 4;
405 addresses = newdup(struct in_addr, option, n_addresses);
411 *n_ret = n_addresses;

Completed in 1750 milliseconds