/resolv/ |
A D | tst-resolv-search.c | 156 switch (family) in format_expected_1() 192 if (family == AF_INET || family == AF_UNSPEC) in format_expected() 194 if (family == AF_INET6 || family == AF_UNSPEC) in format_expected() 202 do_get (const char *name, const char *fqdn, int family) in do_get() argument 204 char *expected = format_expected (fqdn, family, format_get); in do_get() 205 if (family == AF_INET) in do_get() 216 switch (family) in do_get() 253 do_gai (const char *name, const char *fqdn, int family) in do_gai() argument 257 .ai_family = family, in do_gai() 262 char *query = xasprintf ("%s:80 [%d]", name, family); in do_gai() [all …]
|
A D | tst-resolv-rotate.c | 90 check_forward_1 (const char *name, int family) in check_forward_1() argument 110 switch (family) in check_forward_1() 137 FAIL_EXIT1 ("unknown address family %d", family); in check_forward_1() 141 if (family == AF_INET) in check_forward_1() 147 if (family != AF_UNSPEC) in check_forward_1() 149 struct hostent *e = gethostbyname2 (name, family); in check_forward_1() 156 struct hostent *e = gethostbyaddr (address, address_length, family); in check_forward_1() 162 .ai_family = family, in check_forward_1() 196 check_forward (int family) in check_forward() argument 198 check_forward_1 ("host.example", family); in check_forward() [all …]
|
A D | tst-resolv-basic.c | 123 check_h (const char *name, int family, const char *expected) in check_h() argument 125 if (family == AF_INET) in check_h() 133 check_hostent (query, gethostbyname2 (name, family), expected); in check_h() 147 if (family == AF_INET) in check_h() 169 name, family, offset, size); in check_h() 205 int family, const char *expected) in check_ai() argument 289 int family = families[i]; in test_nodata_nxdomain() local 294 if (family != AF_UNSPEC) in test_nodata_nxdomain() 299 check_h (name, family, "error: NO_ADDRESS\n"); in test_nodata_nxdomain() 308 check_ai (name, "80", family, expected); in test_nodata_nxdomain() [all …]
|
A D | tst-resolv-threads.c | 115 int ret, struct hostent *e, int family, int counter) in check_hostent() argument 127 TEST_VERIFY (e->h_addrtype == family); in check_hostent() 130 switch (family) in check_hostent() 149 FAIL_EXIT1 ("%s: invalid address family %d", caller, family); in check_hostent() 157 int ret, struct addrinfo *ai, int family, int counter) in check_addrinfo() argument 206 FAIL_EXIT1 ("%s: invalid address family %d", caller, family); in check_addrinfo() 210 switch (family) in check_addrinfo() 225 FAIL_EXIT1 ("%s: invalid address family %d", caller, family); in check_addrinfo() 303 gai (int family) in gai() argument 314 .ai_family = family, in gai() [all …]
|
A D | res_enable_icmp.c | 24 __res_enable_icmp (int family, int fd) in __res_enable_icmp() argument 27 switch (family) in __res_enable_icmp()
|
A D | tst-inet_pton.c | 48 check_result (const char *what, const struct test_case *t, int family, in check_result() argument 57 switch (family) in check_result() 70 FAIL_EXIT1 ("invalid address family %d", family); in check_result() 79 what, t->input, family, ok, inet_ret); in check_result() 86 what, t->input, family); in check_result()
|
A D | tst-resolv-edns.c | 237 decode_addrinfo (struct addrinfo *ai, int family) in decode_addrinfo() argument 242 if (ai->ai_family == family) in decode_addrinfo() 245 switch (family) in decode_addrinfo() 322 do_ai (int family) in do_ai() argument 324 struct addrinfo hints = { .ai_family = family }; in do_ai() 328 switch (family) in do_ai() 332 verify_response_data (decode_addrinfo (ai, family)); in do_ai() 339 FAIL_EXIT1 ("invalid address family %d", family); in do_ai()
|
A D | resolv-internal.h | 107 int __res_enable_icmp (int family, int fd) attribute_hidden;
|
A D | README | 56 the `gethostby*' family of functions, which means that for example
|
/resolv/nss_dns/ |
A D | dns-host.c | 1223 (*pat)->family = type == T_A ? AF_INET : AF_INET6; in gaih_getanswer_slice()
|