Home
last modified time | relevance | path

Searched refs:nscount (Results 1 – 25 of 26) sorted by relevance

12

/glibc-2.36/resolv/
Dtst-resolv-rotate.c206 for (int nscount = 1; nscount <= 3; ++nscount) in do_test() local
207 for (int disable_server = -1; disable_server < nscount; ++disable_server) in do_test()
208 for (drop_server = -1; drop_server < nscount; ++drop_server) in do_test()
217 if (nscount <= broken_servers) in do_test()
222 force_tcp, nscount, disable_server, drop_server); in do_test()
226 .nscount = nscount in do_test()
246 for (int i = 0; i < nscount; ++i) in do_test()
253 nscount, i); in do_test()
Dres_send.c201 unsigned int nscount = statp->nscount; in nameserver_offset() local
202 if (nscount <= 1 || !(statp->options & RES_ROTATE)) in nameserver_offset()
229 switch (nscount) in nameserver_offset()
238 return offset % nscount; in nameserver_offset()
273 if (statp->nscount == 0) { in __res_context_send()
293 if (EXT(statp).nscount != 0) { in __res_context_send()
296 if (EXT(statp).nscount != statp->nscount) in __res_context_send()
299 for (unsigned int ns = 0; ns < statp->nscount; ns++) { in __res_context_send()
311 EXT(statp).nscount = 0; in __res_context_send()
318 if (EXT(statp).nscount == 0) { in __res_context_send()
[all …]
Dresolv_conf.c255 if (resp->nscount != nserv in resolv_conf_matches()
256 || (resp->_u._ext.nscount != 0 && resp->_u._ext.nscount != nserv)) in resolv_conf_matches()
483 resp->nscount = 0; in update_from_conf()
484 resp->_u._ext.nscount = 0; in update_from_conf()
514 resp->nscount = nserv; in update_from_conf()
Dres-close.c102 for (int ns = 0; ns < statp->nscount; ns++) in __res_iclose()
134 if (_res.nscount == 0) in libc_hidden_def()
Dres_isourserver.c101 for (ns = 0; ns < statp->nscount; ns++) in res_ourserver_p()
114 for (ns = 0; ns < statp->nscount; ns++) in res_ourserver_p()
Dres-noaaaa.c64 || ntohs (replacement.header.nscount) != 0) in __res_handle_no_aaaa()
131 replacement.header.nscount = htons (0); in __res_handle_no_aaaa()
Dresolv_context.h119 return ctx->resp->nscount; in __resolv_context_nameserver_count()
133 if (index < ctx->resp->nscount) in __resolv_context_nameserver()
Dtst-resolv-res_init-skeleton.c185 for (size_t i = 0; i < resp->nscount; ++i) in print_resp()
830 TEST_VERIFY (_res.nscount == 2); in special_test_callback()
893 TEST_VERIFY (_res.nscount == 1); in special_test_callback()
907 TEST_VERIFY (_res.nscount == 2); in special_test_callback()
Dres_debug.c243 int qdcount, ancount, nscount, arcount; in fp_nquery() local
262 nscount = ns_msg_count(handle, ns_s_ns); in fp_nquery()
299 p_section(ns_s_ns, opcode), nscount); in fp_nquery()
315 nscount == 0 && arcount == 0) in fp_nquery()
Dres_get_nsaddr.c26 assert (n < statp->nscount); in __res_get_nsaddr()
Dres_libc.c72 else if (_res.nscount > 0) in res_init()
Dtst-resolv-res_ninit.c48 TEST_VERIFY (array[i].nscount > 0); in do_test()
Dresolv_context.c93 if (resp->nscount > 0) in maybe_init()
Dtst-resolv-trustad.c72 TEST_COMPARE (0, ntohs (header.nscount)); in check_answer()
Dtst-resolv-threads.c394 .nscount = 1, in do_test()
/glibc-2.36/support/
Dresolv_test.c195 b->buffer[8] = flags.nscount >> 8; in resolv_response_init()
196 b->buffer[9] = flags.nscount; in resolv_response_init()
485 if (ntohs (hd.nscount) != 0) in parse_query()
487 (int) ntohs (hd.nscount)); in parse_query()
1126 if (config.nscount == 0) in resolv_test_start()
1127 config.nscount = resolv_max_test_servers; in resolv_test_start()
1139 for (int server_index = 0; server_index < config.nscount; ++server_index) in resolv_test_start()
1149 for (int server_index = 0; server_index < config.nscount; ++server_index) in resolv_test_start()
1183 _res._u._ext.nscount = 0; in resolv_test_start()
1191 printf ("info: old _res.nscount value: %d\n", _res.nscount); in resolv_test_start()
[all …]
Dresolv_test.h101 int nscount; member
159 unsigned short nscount; member
Dsupport_format_dns_packet.c116 unsigned short nscount; in support_format_dns_packet() local
122 && extract_16 (&in, &nscount) in support_format_dns_packet()
/glibc-2.36/resolv/bits/types/
Dres_state.h17 int nscount; /* number of name servers */ member
43 uint16_t nscount; member
/glibc-2.36/resolv/arpa/
Dnameser_compat.h74 unsigned nscount :16; /*%< number of authority entries */ member
/glibc-2.36/ChangeLog.old/
DChangeLog.175055 even if we currently have zero nscount.
5436 * resolv/res_init.c (__res_vinit): Count all servers in statp->nscount.
5481 * resolv/res_init.c (__res_vinit): Always assign to statp->nscount
5526 * resolv/res_init.c (__res_vinit): Initialize nscount to zero.
DChangeLog.128064 * resolv/res_send.c (res_nsend): Use it instead of nscount.
8066 (res_nclose): Clear it instead of nscount.
DChangeLog.154073 _res.nscount > 0, call __res_nclose and free nsaddrs.
DChangeLog.95471 * resolv/res_init.c (res_init): Initialize _res.nscount and
DChangeLog.1411073 * resolv/res_init.c (res_thread_freeres): Bail out if _res.nscount is

12