Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 25 of 63) sorted by relevance

123

/glibc-2.36/posix/
Dtst-getaddrinfo3.c74 inet_ntop (AF_INET6, \ in do_test()
81 inet_ntop (AF_INET6, \ in do_test()
107 hints.ai_family = AF_INET6; in do_test()
110 T (3, 0, "127.0.0.1", AF_INET6, "::ffff:127.0.0.1"); in do_test()
113 hints.ai_family = AF_INET6; in do_test()
115 T (4, EAI_ADDRFAMILY, "127.0.0.1", AF_INET6, ""); in do_test()
120 T (5, 0, "::1", AF_INET6, "::1"); in do_test()
125 T (6, EAI_ADDRFAMILY, "::1", AF_INET6, ""); in do_test()
128 hints.ai_family = AF_INET6; in do_test()
130 T (7, 0, "::1", AF_INET6, "::1"); in do_test()
[all …]
Dtst-rfc3484-2.c106 so2.sin6_family = AF_INET6; in do_test()
113 sa2.sin6_family = AF_INET6; in do_test()
120 ai2.ai_family = AF_INET6; in do_test()
150 if (results[order[0]].dest_addr->ai_family == AF_INET6) in do_test()
179 if (results[order[0]].dest_addr->ai_family == AF_INET6) in do_test()
Dtst-getaddrinfo4.c58 err |= try (NULL, AF_INET6, 0); in do_test()
62 err |= try ("http", AF_INET6, 0); in do_test()
/glibc-2.36/resolv/
Dtst-resolv-basic.c227 .ai_family = AF_INET6, in test_bug_21295()
279 int families[] = { AF_UNSPEC, AF_INET, AF_INET6, -1 }; in test_nodata_nxdomain()
339 check_h ("www.example", AF_INET6, in do_test()
342 check_h ("alias.example", AF_INET6, in do_test()
421 check_ai ("www.example", "80", AF_INET6, in do_test()
426 (struct addrinfo) { .ai_family = AF_INET6, in do_test()
433 check_ai ("alias.example", "80", AF_INET6, in do_test()
438 (struct addrinfo) { .ai_family = AF_INET6, in do_test()
445 check_ai (LONG_NAME, "80", AF_INET6, in do_test()
457 check_h ("t.www.example", AF_INET6, in do_test()
[all …]
Dtst-inet_ntop.c52 if (inet_ntop (AF_INET6, &addr6, buf, 22) != NULL) in do_test()
68 if (inet_ntop (AF_INET6, &addr6, buf, 23) != buf) in do_test()
81 if (inet_ntop (AF_INET6, &addr6, buf, 39) != NULL) in do_test()
97 if (inet_ntop (AF_INET6, &addr6, buf, 40) != buf) in do_test()
Dtst-resolv-noaaaa.c216 gethostbyname2 ("an1.ns2.ar1.example", AF_INET6), in do_test()
220 gethostbyname2 ("an0.ns2.ar1.example", AF_INET6), in do_test()
224 gethostbyname2 ("an-1.ns2.ar1.example", AF_INET6), in do_test()
236 gethostbyname2 ("an2.ns0.ar0.example", AF_INET6), in do_test()
256 .ai_family = AF_INET6, in do_test()
289 .ai_family = AF_INET6, in do_test()
321 .ai_family = AF_INET6, in do_test()
350 .ai_family = AF_INET6, in do_test()
Dtst-resolv-search.c162 case AF_INET6: in format_expected_1()
194 if (family == AF_INET6 || family == AF_UNSPEC) in format_expected()
195 format_expected_1 (stream.out, AF_INET6, format, index); in format_expected()
221 case AF_INET6: in do_get()
276 do_get (name, fqdn, AF_INET6); in do_both()
278 do_gai (name, fqdn, AF_INET6); in do_both()
Dtst-inet_pton.c64 case AF_INET6: in check_result()
107 check_result ("inet_pton", t, AF_INET6, ntf_out6.buffer, in run_one_test()
108 inet_pton (AF_INET6, ntf_in.buffer, ntf_out6.buffer)); in run_one_test()
122 check_result ("__inet_pton_length", t, AF_INET6, ntf_out6.buffer, in run_one_test()
123 __inet_pton_length (AF_INET6, ntf_in.buffer, ntf_in.length, in run_one_test()
Dtst-resolv-threads.c139 case AF_INET6: in check_hostent()
192 case AF_INET6: in check_addrinfo()
216 case AF_INET6: in check_addrinfo()
294 int ret = gethostbyname2_r (qname, AF_INET6, &storage, buf, sizeof (buf), in thread_byname2_af_inet6()
296 check_hostent (__func__, "gethostbyname2_r", qname, ret, e, AF_INET6, i); in thread_byname2_af_inet6()
338 return gai (AF_INET6); in thread_gai_inet6()
Dcompat-gethnamaddr.c426 struct hostent *hp = res_gethostbyname2_context (ctx, name, AF_INET6); in libresolv_hidden_proto()
459 case AF_INET6: in res_gethostbyname2_context()
601 if (af == AF_INET6 && len == IN6ADDRSZ && in res_gethostbyaddr_context()
614 case AF_INET6: in res_gethostbyaddr_context()
635 case AF_INET6: in res_gethostbyaddr_context()
671 hp->h_addrtype = AF_INET6; in res_gethostbyaddr_context()
738 if (inet_pton(AF_INET6, p, host_addr) > 0) { in _gethtent()
739 af = AF_INET6; in _gethtent()
744 af = AF_INET6; in _gethtent()
787 hp = _gethtbyname2(name, AF_INET6); in _gethtbyname()
[all …]
Dtst-resolv-trailing.c96 TEST_VERIFY (gethostbyname2 (query, AF_INET6) == NULL); in do_test()
101 TEST_COMPARE (gethostbyname2_r (query, AF_INET6, in do_test()
124 hints.ai_family = AF_INET6; in do_test()
Dtst-resolv-edns.c253 case AF_INET6: in decode_addrinfo()
331 case AF_INET6: in do_ai()
336 verify_response_data (decode_addrinfo (ai, AF_INET6)); in do_ai()
466 check_hostent (gethostbyname2 (probe_name, AF_INET6)); in run_test()
469 do_ai (AF_INET6); in run_test()
Dres_isourserver.c112 } else if (inp->sin6_family == AF_INET6) in res_ourserver_p()
118 if ((srv->sin6_family == AF_INET6) && in res_ourserver_p()
/glibc-2.36/nss/
Ddigits_dots.c91 case AF_INET6: in __nss_hostname_digits_dots_context()
96 af = res_use_inet6 () ? AF_INET6 : AF_INET; in __nss_hostname_digits_dots_context()
97 addr_size = af == AF_INET6 ? IN6ADDRSZ : INADDRSZ; in __nss_hostname_digits_dots_context()
164 assert (af == AF_INET6); in __nss_hostname_digits_dots_context()
200 resbuf->h_addrtype = AF_INET6; in __nss_hostname_digits_dots_context()
227 af = res_use_inet6 () ? AF_INET6 : AF_INET; in __nss_hostname_digits_dots_context()
228 if (af == AF_INET6) in __nss_hostname_digits_dots_context()
245 case AF_INET6: in __nss_hostname_digits_dots_context()
259 if (inet_pton (AF_INET6, name, host_addr) <= 0) in __nss_hostname_digits_dots_context()
275 resbuf->h_addrtype = AF_INET6; in __nss_hostname_digits_dots_context()
Dtst-nss-files-hosts-multi.c89 TEST_VERIFY (params->family == AF_INET || params->family == AF_INET6); in expected_ghbn()
114 bool do_ipv6 = params->family == AF_INET6 in expected_ghbn()
145 else if (params->family == AF_INET6) in expected_gai()
254 static const int families[] = { AF_INET, AF_INET6, AF_UNSPEC, -1 }; in subprocess()
/glibc-2.36/sysdeps/posix/
Dgetaddrinfo.c237 res->got_ipv6 = family == AF_INET6; in convert_hostent_to_gaih_addrtuple()
251 if (family == AF_INET && req->ai_family == AF_INET6) in convert_hostent_to_gaih_addrtuple()
254 array[i].family = AF_INET6; in convert_hostent_to_gaih_addrtuple()
525 && req->ai_family == AF_INET6 in get_nscd_addresses()
535 if (air->family[i] == AF_INET && req->ai_family == AF_INET6 in get_nscd_addresses()
538 at[count].family = AF_INET6; in get_nscd_addresses()
547 if (air->family[count] == AF_INET6) in get_nscd_addresses()
685 && req->ai_family == AF_INET6 in get_nss_addresses()
689 (*pat)->family = AF_INET6; in get_nss_addresses()
703 if (req->ai_family == AF_INET6) in get_nss_addresses()
[all …]
/glibc-2.36/inet/
Dgetnameinfo.c239 if (sa->sa_family == AF_INET6) in gni_host_inet_name()
243 AF_INET6, &th, tmpbuf->data, tmpbuf->length, in gni_host_inet_name()
337 if (sa->sa_family == AF_INET6) in gni_host_inet_numeric()
340 if (inet_ntop (AF_INET6, &sin6p->sin6_addr, host, hostlen) == NULL) in gni_host_inet_numeric()
422 case AF_INET6: in gni_host()
490 case AF_INET6: in gni_serv()
524 case AF_INET6: in getnameinfo()
Dtst-inet6_scopeid_pton.c52 if (inet_pton (AF_INET6, address, &addr) != 1) in from_string()
86 TEST_VERIFY (ai->ai_family == AF_INET6); in call_gai()
145 if (call_gai (AF_INET6, address, scope, &sa)) in expect_failure()
187 if (call_gai (AF_INET6, address, scope, &sa)) in expect_success()
Dtest-ifaddrs.c40 case AF_INET6: in addr_string()
41 return inet_ntop (AF_INET6, &((struct sockaddr_in6 *) sa)->sin6_addr, in addr_string()
Drcmd.c125 if (af != AF_INET && af != AF_INET6 && af != AF_UNSPEC) in rcmd_af()
285 case AF_INET6: in rcmd_af()
383 case AF_INET6: in rresvport_af()
606 case AF_INET6: in iruserok_af()
607 ra.in6.sin6_family = AF_INET6; in iruserok_af()
Dtst-inet6_rth.c108 inet_ntop (AF_INET6, addr, addrbuf, sizeof (addrbuf)); in do_test()
176 inet_ntop (AF_INET6, addr, addrbuf, sizeof (addrbuf)); in do_test()
/glibc-2.36/support/
Dsupport_format_addrinfo.c35 case AF_INET6: in socket_address_length()
182 case AF_INET6: in format_ai_one()
185 ret = inet_ntop (AF_INET6, &sin->sin6_addr, buf, sizeof (buf)); in format_ai_one()
237 format_ai_family (mem.out, ai, AF_INET6); in support_format_addrinfo()
/glibc-2.36/nss/nss_files/
Dfiles-hosts.c64 && __inet_pton (AF_INET6, addr, entdata->host_addr) > 0)
78 && __inet_pton (AF_INET6, addr, entdata->host_addr) > 0)
79 af = AF_INET6;
123 assert (af == AF_INET || af == AF_INET6); in gethostbyname3_multi()
202 else if (af == AF_INET6) in gethostbyname3_multi()
/glibc-2.36/nscd/
Dnscd_gethst_r.c54 reqtype = af == AF_INET6 ? GETHOSTBYNAMEv6 : GETHOSTBYNAME; in __nscd_gethostbyname2_r()
69 || (len == IN6ADDRSZ && type == AF_INET6))) in __nscd_gethostbyaddr_r()
73 reqtype = type == AF_INET6 ? GETHOSTBYADDRv6 : GETHOSTBYADDR; in __nscd_gethostbyaddr_r()
285 resultbuf->h_addrtype = AF_INET6; in nscd_gethst_r()
Daicache.c149 else if (at2->family == AF_INET6) in addhstaiX()
184 else if (at2->family == AF_INET6) in addhstaiX()
208 status[0] = DL_CALL_FCT (fct, (key, AF_INET6, &th[0], in addhstaiX()
295 addrfamily = AF_INET6; in addhstaiX()

123