Home
last modified time | relevance | path

Searched refs:h_addr_list (Results 1 – 23 of 23) sorted by relevance

/glibc-2.36/nss/
Dtst-reload1.c148 TEST_VERIFY (h->h_addr_list[0] != NULL); in must_be_tests()
149 if (h->h_addr_list[0]) in must_be_tests()
150 TEST_VERIFY (strcmp (h->h_addr_list[0], ht[i].h_addr_list[0]) == 0); in must_be_tests()
166 TEST_VERIFY (r.h_addr_list[0] != NULL); in must_be_tests()
167 if (r.h_addr_list[0]) in must_be_tests()
168 TEST_VERIFY (strcmp (r.h_addr_list[0], ht[i].h_addr_list[0]) == 0); in must_be_tests()
179 TEST_VERIFY (h->h_addr_list[0] != NULL); in must_be_tests()
180 if (h->h_addr_list[0]) in must_be_tests()
181 TEST_VERIFY (strcmp (h->h_addr_list[0], ht[i].h_addr_list[0]) == 0); in must_be_tests()
211 TEST_VERIFY (memcmp (up, ht[i].h_addr_list[j], 4) == 0); in must_be_tests()
[all …]
Dnss_test1.c451 if (local->h_addr_list) in copy_host()
454 while (local->h_addr_list[i]) in copy_host()
461 memlist[j] = alloc_buffer_maybe_copy_string (&buf, local->h_addr_list[j]); in copy_host()
465 result->h_addr_list = memlist; in copy_host()
469 result->h_addr_list = NULL; in copy_host()
Ddigits_dots.c182 resbuf->h_addr_list = *h_addr_ptrs; in __nss_hostname_digits_dots_context()
274 resbuf->h_addr_list = *h_addr_ptrs; in __nss_hostname_digits_dots_context()
Dnss_test.h52 #define HOST_LAST() { .h_name = NULL, .h_aliases = NULL, .h_length = 0, .h_addr_list = NULL }
89 .h_addr_list = (char **) hostaddr_##u }
Dtest-netdb.c130 for (pptr = hptr->h_addr_list; *pptr != NULL; pptr++) in output_hostent()
Dgetent.c275 for (cnt = 0; host->h_addr_list[cnt] != NULL; ++cnt) in print_hosts()
278 const char *ip = inet_ntop (host->h_addrtype, host->h_addr_list[cnt], in print_hosts()
/glibc-2.36/nss/nss_files/
Dfiles-hosts.c92 result->h_addr_list = entdata->h_addr_ptrs;
107 && ! memcmp (addr, result->h_addr_list[0], len))
136 for (size_t i = 0; result->h_addr_list[i] != NULL; ++i) in gethostbyname3_multi()
137 array_add (&addresses, result->h_addr_list[i]); in gethostbyname3_multi()
192 for (size_t i = 0; tmp_result_buf.h_addr_list[i] != NULL; ++i) in gethostbyname3_multi()
218 memcpy (target, tmp_result_buf.h_addr_list[i], in gethostbyname3_multi()
311 result->h_addr_list = out_addresses; in gethostbyname3_multi()
436 assert (result.h_addr_list[1] == NULL); in libc_hidden_def()
462 memcpy ((*pat)->addr, result.h_addr_list[0], result.h_length); in libc_hidden_def()
/glibc-2.36/resolv/
Dres_hconf.c505 for (i = 0; hp->h_addr_list[i]; ++i) in _res_hconf_reorder_addrs()
507 struct in_addr *haddr = (struct in_addr *) hp->h_addr_list[i]; in _res_hconf_reorder_addrs()
518 tmp = hp->h_addr_list[i]; in _res_hconf_reorder_addrs()
519 hp->h_addr_list[i] = hp->h_addr_list[0]; in _res_hconf_reorder_addrs()
520 hp->h_addr_list[0] = tmp; in _res_hconf_reorder_addrs()
Dtst-resolv-threads.c128 TEST_VERIFY_EXIT (e->h_addr_list[0] != NULL); in check_hostent()
129 TEST_VERIFY (e->h_addr_list[1] == NULL); in check_hostent()
136 TEST_VERIFY (memcmp (e->h_addr_list[0], addr, sizeof (addr)) == 0); in check_hostent()
145 TEST_VERIFY (memcmp (e->h_addr_list[0], addr, sizeof (addr)) == 0); in check_hostent()
Dcompat-gethnamaddr.c209 host.h_addr_list = h_addr_ptrs; in getanswer()
509 host.h_addr_list = h_addr_ptrs; in res_gethostbyname2_context()
542 host.h_addr_list = h_addr_ptrs; in res_gethostbyname2_context()
755 host.h_addr_list = h_addr_ptrs; in _gethtent()
860 for (ap = hp->h_addr_list; *ap; ap++) { in map_v4v6_hostent()
Dtst-resolv-edns.c231 TEST_VERIFY_EXIT (e->h_addr_list[0] != NULL); in decode_hostent()
232 TEST_VERIFY (e->h_addr_list[1] == NULL); in decode_hostent()
233 return decode_address (e->h_addr_list[0], e->h_length); in decode_hostent()
Dmapv4v6hostent.h69 for (ap = hp->h_addr_list; *ap; ap++) in map_v4v6_hostent()
Dnetdb.h104 char **h_addr_list; /* List of addresses from name server. */ member
106 # define h_addr h_addr_list[0] /* Address, for backward compatibility.*/
/glibc-2.36/nscd/
Dnscd_gethst_r.c272 resultbuf->h_addr_list = (char **) cp; in nscd_gethst_r()
290 resultbuf->h_addr_list[cnt] = cp; in nscd_gethst_r()
293 resultbuf->h_addr_list[cnt] = NULL; in nscd_gethst_r()
317 vec[n].iov_base = resultbuf->h_addr_list[0]; in nscd_gethst_r()
337 vec[n].iov_base = resultbuf->h_addr_list[0]; in nscd_gethst_r()
351 memcpy (resultbuf->h_addr_list[0], addr_list, addr_list_len); in nscd_gethst_r()
Daicache.c252 for (int i = 0; th[j].h_addr_list[i] != NULL; ++i) in addhstaiX()
287 addr = th[1].h_addr_list[0]; in addhstaiX()
293 addr = th[0].h_addr_list[0]; in addhstaiX()
352 for (int i = 0; th[j].h_addr_list[i] != NULL; ++i) in addhstaiX()
354 addrs = mempcpy (addrs, th[j].h_addr_list[i], in addhstaiX()
Dhstcache.c214 while (hst->h_addr_list[h_addr_list_cnt] != NULL) in cache_addhst()
278 cp = mempcpy (cp, hst->h_addr_list[cnt], hst->h_length); in cache_addhst()
382 assert (hst->h_addr_list[1] == NULL); in cache_addhst()
/glibc-2.36/support/
Dsupport_format_hostent.c63 for (unsigned i = 0; h->h_addr_list[i] != NULL; ++i) in support_format_hostent()
66 if (inet_ntop (h->h_addrtype, h->h_addr_list[i], in support_format_hostent()
/glibc-2.36/conform/data/
Dnetdb.h-data11 element {struct hostent} {char**} h_addr_list
/glibc-2.36/sysdeps/posix/
Dgetaddrinfo.c215 for (char **p = h->h_addr_list; *p != NULL; ++p) in convert_hostent_to_gaih_addrtuple()
255 memcpy(array[i].addr + 3, h->h_addr_list[i], sizeof (uint32_t)); in convert_hostent_to_gaih_addrtuple()
261 memcpy (array[i].addr, h->h_addr_list[i], h->h_length); in convert_hostent_to_gaih_addrtuple()
/glibc-2.36/resolv/nss_dns/
Ddns-host.c768 result->h_addr_list = host_data->h_addr_ptrs; in getanswer_r()
/glibc-2.36/manual/
Dsocket.texi1262 @item char **h_addr_list
1268 This is a synonym for @code{h_addr_list[0]}; in other words, it is the
/glibc-2.36/ChangeLog.old/
DChangeLog.1010586 * nscd/nscd_gethst_r.c (nscd_gethst_r): Align the h_addr_list
DChangeLog.234429 (h_addr_list): Remove.