/glibc-2.36/posix/ |
D | tst-rfc3484.c | 76 { .sin_family = AF_INET, .sin_addr = { h (0x0aa85f19) } }, 77 { .sin_family = AF_INET, .sin_addr = { h (0xac105f19) } }, 78 { .sin_family = AF_INET, .sin_addr = { h (0xc0000219) } }, 79 { .sin_family = AF_INET, .sin_addr = { h (0xc0a86d1d) } }, 80 { .sin_family = AF_INET, .sin_addr = { h (0xc0a85d03) } }, 81 { .sin_family = AF_INET, .sin_addr = { h (0xc0a82c3d) } }, 82 { .sin_family = AF_INET, .sin_addr = { h (0xc0a86002) } }, 83 { .sin_family = AF_INET, .sin_addr = { h (0xc0a802f3) } }, 84 { .sin_family = AF_INET, .sin_addr = { h (0xc0a80810) } }, 85 { .sin_family = AF_INET, .sin_addr = { h (0xc0a85e02) } } [all …]
|
D | tst-rfc3484-3.c | 76 { .sin_family = AF_INET, .sin_addr = { h (0xa0a86d1d) } }, 77 { .sin_family = AF_INET, .sin_addr = { h (0xa0a85d03) } }, 78 { .sin_family = AF_INET, .sin_addr = { h (0xa0a82c3d) } }, 79 { .sin_family = AF_INET, .sin_addr = { h (0xa0a86002) } }, 80 { .sin_family = AF_INET, .sin_addr = { h (0xa0a802f3) } }, 81 { .sin_family = AF_INET, .sin_addr = { h (0xa0a80810) } }, 82 { .sin_family = AF_INET, .sin_addr = { h (0xa0a85e02) } }, 83 { .sin_family = AF_INET, .sin_addr = { h (0xac162311) } }, 84 { .sin_family = AF_INET, .sin_addr = { h (0x0a324572) } } 123 so.sin_family = AF_INET; in do_test() [all …]
|
D | tst-getaddrinfo3.c | 42 else if (fam == AF_INET) \ in do_test() 99 T (1, 0, "127.0.0.1", AF_INET, "127.0.0.1"); in do_test() 102 hints.ai_family = AF_INET; in do_test() 104 T (2, 0, "127.0.0.1", AF_INET, "127.0.0.1"); in do_test() 123 hints.ai_family = AF_INET; in do_test() 138 hints.ai_family = AF_INET; in do_test() 140 T (9, 0, "::ffff:127.0.0.1", AF_INET, "127.0.0.1"); in do_test()
|
D | tst-getaddrinfo2.c | 20 hints.ai_family = AF_INET; in do_test() 34 if (pai->ai_family == AF_INET) in do_test() 39 err |= pai->ai_family != AF_INET; in do_test() 42 if (pai->ai_family == AF_INET) in do_test()
|
/glibc-2.36/resolv/ |
D | tst-resolv-basic.c | 125 if (family == AF_INET) in check_h() 147 if (family == AF_INET) in check_h() 279 int families[] = { AF_UNSPEC, AF_INET, AF_INET6, -1 }; in test_nodata_nxdomain() 332 check_h ("www.example", AF_INET, in do_test() 335 check_h ("alias.example", AF_INET, in do_test() 346 check_h (LONG_NAME, AF_INET, in do_test() 393 check_ai ("www.example", "80", AF_INET, in do_test() 398 (struct addrinfo) { .ai_family = AF_INET, in do_test() 405 check_ai ("alias.example", "80", AF_INET, in do_test() 410 (struct addrinfo) { .ai_family = AF_INET, in do_test() [all …]
|
D | tst-resolv-search.c | 158 case AF_INET: in format_expected_1() 192 if (family == AF_INET || family == AF_UNSPEC) in format_expected() 193 format_expected_1 (stream.out, AF_INET, format, index); in format_expected() 205 if (family == AF_INET) in do_get() 218 case AF_INET: in do_get() 275 do_get (name, fqdn, AF_INET); in do_both() 277 do_gai (name, fqdn, AF_INET); in do_both()
|
D | tst-resolv-threads.c | 132 case AF_INET: in check_hostent() 181 case AF_INET: in check_addrinfo() 212 case AF_INET: in check_addrinfo() 256 ret = gethostbyname2_r (qname, AF_INET, &storage, buf, sizeof (buf), in byname() 259 qname, ret, e, AF_INET, i); in byname() 331 return gai (AF_INET); in thread_gai_inet() 383 .sin_family = AF_INET, in do_test()
|
D | tst-inet_pton.c | 59 case AF_INET: in check_result() 104 check_result ("inet_pton", t, AF_INET, ntf_out4.buffer, in run_one_test() 105 inet_pton (AF_INET, ntf_in.buffer, ntf_out4.buffer)); in run_one_test() 118 check_result ("__inet_pton_length", t, AF_INET, ntf_out4.buffer, in run_one_test() 119 __inet_pton_length (AF_INET, ntf_in.buffer, ntf_in.length, in run_one_test()
|
D | tst-resolv-noaaaa.c | 202 gethostbyname2 ("an1.ns2.ar1.example", AF_INET), in do_test() 207 gethostbyname2 ("an0.ns2.ar1.example", AF_INET), in do_test() 211 gethostbyname2 ("an-1.ns2.ar1.example", AF_INET), in do_test() 246 .ai_family = AF_INET, in do_test() 277 .ai_family = AF_INET, in do_test() 312 .ai_family = AF_INET, in do_test() 341 .ai_family = AF_INET, in do_test()
|
D | compat-gethnamaddr.c | 433 struct hostent *hp = res_gethostbyname2_context (ctx, name, AF_INET); in libresolv_hidden_proto() 455 case AF_INET: in res_gethostbyname2_context() 576 struct hostent *hp = res_gethostbyname2_context (ctx, name, AF_INET); in res_gethostbyname2() 607 af = AF_INET; in res_gethostbyaddr_context() 611 case AF_INET: in res_gethostbyaddr_context() 628 case AF_INET: in res_gethostbyaddr_context() 669 if (af == AF_INET && res_use_inet6 ()) { in res_gethostbyaddr_context() 741 } else if (inet_pton(AF_INET, p, host_addr) > 0) { in _gethtent() 747 af = AF_INET; in _gethtent() 791 return (_gethtbyname2(name, AF_INET)); in _gethtbyname() [all …]
|
D | tst-resolv-trailing.c | 84 TEST_VERIFY (gethostbyname2 (query, AF_INET) == NULL); in do_test() 89 TEST_COMPARE (gethostbyname2_r (query, AF_INET, in do_test() 122 hints.ai_family = AF_INET; in do_test()
|
D | tst-resolv-nondecimal.c | 49 hints.ai_family = AF_INET; in run_query_addrinfo() 101 check_hostent (context, gethostbyname2 (query, AF_INET), expected); in run_query() 106 TEST_COMPARE (gethostbyname2_r (query, AF_INET, &storage, buf, sizeof (buf), in run_query()
|
D | tst-resolv-edns.c | 247 case AF_INET: in decode_addrinfo() 330 case AF_INET: in do_ai() 335 verify_response_data (decode_addrinfo (ai, AF_INET)); in do_ai() 465 check_hostent (gethostbyname2 (probe_name, AF_INET)); in run_test() 468 do_ai (AF_INET); in run_test()
|
/glibc-2.36/socket/ |
D | tst-accept4.c | 57 result.socket = xsocket (AF_INET, in client_connect() 76 TEST_VERIFY (left->sin_family == AF_INET); in check_same_address() 77 TEST_VERIFY (right->sin_family == AF_INET); in check_same_address() 86 int server_socket = xsocket (AF_INET, SOCK_STREAM, 0); in do_test() 91 .sin_family = AF_INET, in do_test()
|
/glibc-2.36/nss/ |
D | tst-nss-files-hosts-multi.c | 89 TEST_VERIFY (params->family == AF_INET || params->family == AF_INET6); in expected_ghbn() 97 if (params->family == AF_INET) in expected_ghbn() 105 if (params->family == AF_INET) in expected_ghbn() 112 bool do_ipv4 = params->family == AF_INET in expected_ghbn() 143 else if (params->family == AF_INET) in expected_gai() 208 if (params->family == AF_INET) in run_gbhn_gai() 254 static const int families[] = { AF_INET, AF_INET6, AF_UNSPEC, -1 }; in subprocess()
|
D | digits_dots.c | 87 case AF_INET: in __nss_hostname_digits_dots_context() 96 af = res_use_inet6 () ? AF_INET6 : AF_INET; in __nss_hostname_digits_dots_context() 160 if (af == AF_INET) in __nss_hostname_digits_dots_context() 183 if (af == AF_INET && res_use_inet6 ()) in __nss_hostname_digits_dots_context() 227 af = res_use_inet6 () ? AF_INET6 : AF_INET; in __nss_hostname_digits_dots_context() 235 case AF_INET: in __nss_hostname_digits_dots_context()
|
D | tst-nss-gai-actions.c | 45 case AF_INET: in family_str() 137 do_one_test (action, AF_INET, false); in do_one_test_set() 138 do_one_test (action, AF_INET, true); in do_one_test_set()
|
D | tst-reload1.c | 160 res = gethostbyname2_r (ht[i].h_name, AF_INET, in must_be_tests() 174 h = gethostbyaddr (ht[i].h_addr, 4, AF_INET); in must_be_tests() 194 hint.ai_family = AF_INET; in must_be_tests() 228 addr.sin_family = AF_INET; in must_be_tests()
|
/glibc-2.36/nss/nss_files/ |
D | files-hosts.c | 58 if (__inet_pton (af == AF_UNSPEC ? AF_INET : af, addr, entdata->host_addr) 60 af = af == AF_UNSPEC ? AF_INET : af; 63 if (af == AF_INET 87 result->h_length = af == AF_INET ? INADDRSZ : IN6ADDRSZ; 97 #define EXTRA_ARGS_VALUE , AF_INET 123 assert (af == AF_INET || af == AF_INET6); in gethostbyname3_multi() 197 if (af == AF_INET) in gethostbyname3_multi() 366 return _nss_files_gethostbyname3_r (name, AF_INET, result, buffer, buflen, in libc_hidden_def()
|
/glibc-2.36/inet/ |
D | rcmd.c | 125 if (af != AF_INET && af != AF_INET6 && af != AF_UNSPEC) in rcmd_af() 282 case AF_INET: in rcmd_af() 363 return rcmd_af (ahost, rport, locuser, remuser, cmd, fd2p, AF_INET); in libc_hidden_def() 379 case AF_INET: in rresvport_af() 429 return rresvport_af(alport, AF_INET); in libc_hidden_def() 464 return ruserok_af(rhost, superuser, ruser, luser, AF_INET); in libc_hidden_def() 601 case AF_INET: in iruserok_af() 602 ra.in.sin_family = AF_INET; in iruserok_af() 621 return iruserok_af (&raddr, superuser, ruser, luser, AF_INET); in libc_hidden_def() 641 ra.sin_family = AF_INET; in __ivaliduser()
|
D | getnameinfo.c | 148 AF_INET, &th, tmpbuf->data, tmpbuf->length, &h, in nrl_domainname_core() 260 AF_INET, &th, tmpbuf->data, tmpbuf->length, in gni_host_inet_name() 367 if (inet_ntop (AF_INET, &sinp->sin_addr, host, hostlen) == NULL) in gni_host_inet_numeric() 421 case AF_INET: in gni_host() 489 case AF_INET: in gni_serv() 520 case AF_INET: in getnameinfo()
|
/glibc-2.36/sysdeps/posix/ |
D | getaddrinfo.c | 251 if (family == AF_INET && req->ai_family == AF_INET6) in convert_hostent_to_gaih_addrtuple() 521 socklen_t size = (air->family[i] == AF_INET in get_nscd_addresses() 524 if (!((air->family[i] == AF_INET in get_nscd_addresses() 535 if (air->family[i] == AF_INET && req->ai_family == AF_INET6 in get_nscd_addresses() 684 if ((*pat)->family == AF_INET in get_nss_addresses() 744 if (req->ai_family == AF_INET in get_nss_addresses() 752 if ((result = gethosts (fct, AF_INET, name, req, tmpbuf, in get_nss_addresses() 759 if (req->ai_family == AF_INET) in get_nss_addresses() 869 if (req->ai_family == AF_UNSPEC || req->ai_family == AF_INET) in text_to_binary_address() 870 at->family = AF_INET; in text_to_binary_address() [all …]
|
/glibc-2.36/sunrpc/ |
D | rpc_gethostbyname.c | 34 while (__gethostbyname2_r (host, AF_INET, in __libc_rpc_gethostbyname() 59 if (hp->h_addrtype != AF_INET || hp->h_length != sizeof (addr->sin_addr)) in __libc_rpc_gethostbyname() 68 addr->sin_family = AF_INET; in __libc_rpc_gethostbyname()
|
/glibc-2.36/support/ |
D | support_format_addrinfo.c | 33 case AF_INET: in socket_address_length() 175 case AF_INET: in format_ai_one() 178 ret = inet_ntop (AF_INET, &sin->sin_addr, buf, sizeof (buf)); in format_ai_one() 236 format_ai_family (mem.out, ai, AF_INET); in support_format_addrinfo()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | if_index.c | 35 int fd = __socket (AF_INET, SOCK_DGRAM, 0); in __if_nametoindex() 87 int fd = __socket (AF_INET, SOCK_DGRAM, 0); in weak_alias() 172 int fd = __socket (AF_INET, SOCK_DGRAM, 0); in weak_alias()
|