Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 25 of 121) sorted by relevance

12345

/glibc-2.36/posix/
Dtst-rfc3484.c76 { .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 …]
Dtst-rfc3484-3.c76 { .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 …]
Dtst-getaddrinfo3.c42 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()
Dtst-getaddrinfo2.c20 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/
Dtst-resolv-basic.c125 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 …]
Dtst-resolv-search.c158 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()
Dtst-resolv-threads.c132 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()
Dtst-inet_pton.c59 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()
Dtst-resolv-noaaaa.c202 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()
Dcompat-gethnamaddr.c433 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 …]
Dtst-resolv-trailing.c84 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()
Dtst-resolv-nondecimal.c49 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()
Dtst-resolv-edns.c247 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/
Dtst-accept4.c57 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/
Dtst-nss-files-hosts-multi.c89 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()
Ddigits_dots.c87 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()
Dtst-nss-gai-actions.c45 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()
Dtst-reload1.c160 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/
Dfiles-hosts.c58 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/
Drcmd.c125 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()
Dgetnameinfo.c148 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/
Dgetaddrinfo.c251 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/
Drpc_gethostbyname.c34 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/
Dsupport_format_addrinfo.c33 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/
Dif_index.c35 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()

12345