/resolv/ |
A D | resolv_context.c | 62 return ctx->resp->options == ctx->conf->options in replicated_configuration_matches() 63 && ctx->resp->retrans == ctx->conf->retrans in replicated_configuration_matches() 64 && ctx->resp->retry == ctx->conf->retry in replicated_configuration_matches() 65 && ctx->resp->ndots == ctx->conf->ndots; in replicated_configuration_matches() 124 ctx->conf = __resolv_conf_get (ctx->resp); in maybe_init() 133 struct resolv_context *ctx = malloc (sizeof (*ctx)); in context_alloc() local 142 return ctx; in context_alloc() 152 free (ctx); in context_free() 189 return ctx; in context_get() 216 return ctx; in libc_hidden_def() [all …]
|
A D | resolv_context.h | 98 if (ctx->conf != NULL) in libc_hidden_proto() 108 return ctx->resp->dnsrch[i]; in libc_hidden_proto() 116 if (ctx->conf != NULL) in __resolv_context_nameserver_count() 119 return ctx->resp->nscount; in __resolv_context_nameserver_count() 127 if (ctx->conf != NULL) in __resolv_context_nameserver() 133 if (index < ctx->resp->nscount) in __resolv_context_nameserver() 147 if (ctx->conf != NULL) in __resolv_context_sort_count() 148 return ctx->conf->sort_list_size; in __resolv_context_sort_count() 150 return ctx->resp->nsort; in __resolv_context_sort_count() 157 if (ctx->conf != NULL) in __resolv_context_sort_entry() [all …]
|
A D | tst-resolv-txnid-collision.c | 87 switch (ctx->server_index) in build_response() 139 response (const struct resolv_response_context *ctx, in response() argument 144 if (ctx->server_index != 0) in response() 145 TEST_COMPARE (ctx->server_index, 1); in response() 158 previous_server_index = ctx->server_index; in response() 171 if (parsed.reorder[ctx->server_index]) in response() 177 resolv_response_send_udp (ctx, b); in response() 190 resolv_response_send_udp (ctx, btmp); in response() 195 if (!parsed.reorder[ctx->server_index]) in response() 217 TEST_VERIFY_EXIT (ctx != NULL); in test_qname() [all …]
|
A D | res_query.c | 114 struct __res_state *statp = ctx->resp; in __res_context_query() 287 if (ctx == NULL) in libc_hidden_def() 294 __resolv_context_put (ctx); in libc_hidden_def() 339 struct __res_state *statp = ctx->resp; in __res_context_search() 408 (ctx, domain_index); in __res_context_search() 428 (ctx, name, dname, class, type, in __res_context_search() 499 (ctx, name, NULL, class, type, in __res_context_search() 537 if (ctx == NULL) in libc_hidden_def() 544 __resolv_context_put (ctx); in libc_hidden_def() 629 if (ctx == NULL) in context_querydomain_common() [all …]
|
A D | tst-bug18665-tcp.c | 38 response (const struct resolv_response_context *ctx, in response() argument 45 if (!ctx->tcp) in response() 86 ipv4[3] = 2 * ctx->tcp + 4 * ctx->server_index; in response() 95 ipv6[15] = 2 * ctx->tcp + 4 * ctx->server_index; in response() 125 ipv4[3] = 2 * ctx->tcp + 4 * ctx->server_index; in response() 135 ipv6[15] = 2 * ctx->tcp + 4 * ctx->server_index; in response()
|
A D | res_hostalias.c | 25 context_hostalias_common (struct resolv_context *ctx, in context_hostalias_common() argument 28 if (ctx == NULL) in context_hostalias_common() 33 const char *result = __res_context_hostalias (ctx, name, dst, siz); in context_hostalias_common() 34 __resolv_context_put (ctx); in context_hostalias_common()
|
A D | res_mkquery.c | 99 __res_context_mkquery (struct resolv_context *ctx, int op, const char *dname, in __res_context_mkquery() argument 121 if (ctx->resp->options & RES_TRUSTAD) in __res_context_mkquery() 123 hp->rd = (ctx->resp->options & RES_RECURSE) != 0; in __res_context_mkquery() 181 context_mkquery_common (struct resolv_context *ctx, in libc_hidden_def() 186 if (ctx == NULL) in libc_hidden_def() 189 (ctx, op, dname, class, type, data, buf, buflen); in libc_hidden_def() 191 memcpy (&ctx->resp->id, buf, 2); in libc_hidden_def() 192 __resolv_context_put (ctx); in libc_hidden_def() 249 __res_nopt (struct resolv_context *ctx, in __res_nopt() argument 291 if (ctx->resp->options & RES_USE_DNSSEC) in __res_nopt()
|
A D | tst-resolv-res_ninit.c | 49 struct resolv_context *ctx = __resolv_context_get_override (array + i); in do_test() local 50 TEST_VERIFY_EXIT (ctx != NULL); in do_test() 51 TEST_VERIFY (ctx->resp == array + i); in do_test() 54 conf = ctx->conf; in do_test() 60 TEST_VERIFY (ctx->conf == conf); in do_test()
|
A D | tst-bug18665.c | 34 response (const struct resolv_response_context *ctx, in response() argument 63 ipv4[3] = 2 * ctx->tcp + 4 * ctx->server_index; in response() 72 ipv6[15] = 2 * ctx->tcp + 4 * ctx->server_index; in response()
|
A D | tst-resolv-rotate.c | 36 response (const struct resolv_response_context *ctx, in response() argument 40 if (ctx->server_index == drop_server) in response() 48 struct resolv_response_flags flags = {.tc = force_tcp && !ctx->tcp}; in response() 54 TEST_VERIFY_EXIT (ctx->server_index < resolv_max_test_servers); in response() 55 ++query_counts[ctx->server_index]; in response() 65 addr[3] = 1 + ctx->tcp; in response() 73 addr[15] = 1 + ctx->tcp; in response()
|
A D | tst-resolv-res_init-skeleton.c | 97 TEST_VERIFY_EXIT (ctx != NULL); in print_resp() 98 if (ctx->conf == NULL) in print_resp() 264 __resolv_context_put (ctx); in print_resp() 334 struct test_context *ctx = closure; in run_res_init() local 337 if (ctx->t->localdomain != NULL) in run_res_init() 338 setenv ("LOCALDOMAIN", ctx->t->localdomain, 1); in run_res_init() 339 if (ctx->t->res_options != NULL) in run_res_init() 340 setenv ("RES_OPTIONS", ctx->t->res_options, 1); in run_res_init() 341 if (ctx->t->hostname != NULL) in run_res_init() 347 if (sethostname (ctx->t->hostname, strlen (ctx->t->hostname)) != 0) in run_res_init() [all …]
|
A D | compat-gethnamaddr.c | 417 struct resolv_context *ctx = __resolv_context_get (); in libresolv_hidden_proto() local 418 if (ctx == NULL) in libresolv_hidden_proto() 429 __resolv_context_put (ctx); in libresolv_hidden_proto() 434 __resolv_context_put (ctx); in libresolv_hidden_proto() 440 res_gethostbyname2_context (struct resolv_context *ctx, in res_gethostbyname2_context() argument 553 (ctx, name, C_IN, type, buf.buf->buf, 1024, in res_gethostbyname2_context() 571 if (ctx == NULL) in res_gethostbyname2() 577 __resolv_context_put (ctx); in res_gethostbyname2() 584 res_gethostbyaddr_context (struct resolv_context *ctx, in res_gethostbyaddr_context() argument 682 if (ctx == NULL) in res_gethostbyaddr() [all …]
|
A D | res_context_hostalias.c | 94 __res_context_hostalias (struct resolv_context *ctx, in __res_context_hostalias() argument 101 if (ctx->resp->options & RES_NOALIASES) in __res_context_hostalias()
|
A D | tst-resolv-edns.c | 57 put_response (const struct resolv_response_context *ctx, in put_response() argument 72 .edns = ctx->edns, in put_response() 113 response (const struct resolv_response_context *ctx, in response() argument 157 flags.tc = force_tcp && !ctx->tcp; in response() 158 if (!flags.tc && send_formerr && ctx->server_index == 0) in response() 169 ctx->edns.active, ctx->edns.payload_size); in response() 178 unsigned int index = put_response (ctx, qname, qtype); in response()
|
A D | tst-resolv-basic.c | 36 response (const struct resolv_response_context *ctx, in response() argument 71 struct resolv_response_flags flags = {.tc = force_tcp && !ctx->tcp}; in response() 102 ipv4[3] += requested_qname + 2 * ctx->tcp + 4 * ctx->server_index; in response() 110 ipv6[15] += requested_qname + 2 * ctx->tcp + 4 * ctx->server_index; in response()
|
A D | tst-resolv-network.c | 42 handle_code (const struct resolv_response_context *ctx, in handle_code() argument 123 if (!ctx->tcp) in handle_code() 161 response (const struct resolv_response_context *ctx, in response() argument 173 handle_code (ctx, b, qname, qclass, qtype, code); in response() 186 handle_code (ctx, b, qname, qclass, qtype, components[3]); in response()
|
A D | tst-resolv-threads.c | 57 response (const struct resolv_response_context *ctx, in response() argument 105 struct resolv_context *ctx = __resolv_context_get (); in check_have_conf() local 106 TEST_VERIFY_EXIT (ctx != NULL); in check_have_conf() 107 TEST_VERIFY (ctx->conf != NULL); in check_have_conf() 108 __resolv_context_put (ctx); in check_have_conf()
|
A D | res_send.c | 245 mask_ad_bit (struct resolv_context *ctx, void *buf) in mask_ad_bit() argument 247 if (!(ctx->resp->options & RES_TRUSTAD)) in mask_ad_bit() 252 __res_context_send (struct resolv_context *ctx, in __res_context_send() argument 259 struct __res_state *statp = ctx->resp; in __res_context_send() 397 mask_ad_bit (ctx, *ansp); in __res_context_send() 399 mask_ad_bit (ctx, ans); in __res_context_send() 403 mask_ad_bit (ctx, *ansp2); in __res_context_send() 432 context_send_common (struct resolv_context *ctx, in libc_hidden_def() 436 if (ctx == NULL) in libc_hidden_def() 441 int result = __res_context_send (ctx, buf, buflen, NULL, 0, ans, anssiz, in libc_hidden_def() [all …]
|
A D | tst-resolv-qtypes.c | 34 response (const struct resolv_response_context *ctx, in response() argument 38 if (force_tcp && ctx->tcp) in response()
|
A D | tst-resolv-search.c | 87 response (const struct resolv_response_context *ctx, in response() argument 91 if (ctx->server_index == rcode_override_server_index) in response() 105 else if (index >= 0 && items[index].response > 5 && !ctx->tcp) in response()
|
A D | tst-resolv-trustad.c | 34 response (const struct resolv_response_context *ctx, in response() argument 43 memcpy (&header, ctx->query_buffer, sizeof (header)); in response()
|
A D | tst-resolv-binary.c | 25 response (const struct resolv_response_context *ctx, in response() argument
|
/resolv/nss_dns/ |
A D | dns-host.c | 159 if (ctx == NULL) in _nss_dns_gethostbyname3_r() 167 __resolv_context_put (ctx); in _nss_dns_gethostbyname3_r() 313 if (ctx == NULL) in libc_hidden_def() 326 __resolv_context_put (ctx); in libc_hidden_def() 340 if (ctx == NULL) in libc_hidden_def() 418 __resolv_context_put (ctx); in libc_hidden_def() 464 if (ctx == NULL) in libc_hidden_def() 494 __resolv_context_put (ctx); in libc_hidden_def() 501 __resolv_context_put (ctx); in libc_hidden_def() 538 __resolv_context_put (ctx); in libc_hidden_def() [all …]
|
A D | dns-network.c | 120 struct resolv_context *ctx = __resolv_context_get (); in _nss_dns_getnetbyname_r() local 121 if (ctx == NULL) in _nss_dns_getnetbyname_r() 131 (ctx, name, C_IN, T_PTR, net_buffer.buf->buf, in _nss_dns_getnetbyname_r() 139 __resolv_context_put (ctx); in _nss_dns_getnetbyname_r() 150 __resolv_context_put (ctx); in _nss_dns_getnetbyname_r() 178 struct resolv_context *ctx = __resolv_context_get (); in libc_hidden_def() local 179 if (ctx == NULL) in libc_hidden_def() 214 anslen = __res_context_query (ctx, qbuf, C_IN, T_PTR, net_buffer.buf->buf, in libc_hidden_def() 223 __resolv_context_put (ctx); in libc_hidden_def() 244 __resolv_context_put (ctx); in libc_hidden_def()
|
A D | dns-canon.c | 62 struct resolv_context *ctx = __resolv_context_get (); in _nss_dns_getcanonname_r() local 63 if (ctx == NULL) in _nss_dns_getcanonname_r() 72 int r = __res_context_query (ctx, name, ns_c_in, qtypes[i], in _nss_dns_getcanonname_r() 183 __resolv_context_put (ctx); in _nss_dns_getcanonname_r()
|