/resolv/ |
A D | res_libc.c | 66 if (!_res.retrans) in res_init() 67 _res.retrans = RES_TIMEOUT; in res_init() 68 if (!_res.retry) in res_init() 69 _res.retry = RES_DFLRETRY; in res_init() 71 _res.options = RES_DEFAULT; in res_init() 72 else if (_res.nscount > 0) in res_init() 78 if (!_res.id) in res_init() 79 _res.id = res_randomid (); in res_init() 85 #undef _res 91 struct __res_state _res; variable [all …]
|
A D | tst-resolv-res_init-skeleton.c | 70 TEST_VERIFY (_res.options & RES_INIT); in check_chroot_working() 359 print_resp (stdout, &_res); in run_res_init() 378 print_resp (stdout, &_res); in run_res_init() 386 print_resp (stdout, &_res); in run_res_init() 395 print_resp (stdout, &_res); in run_res_init() 785 _res.options = RES_USE_EDNS0; in special_test_callback() 789 _res.options |= RES_USE_EDNS0; in special_test_callback() 803 _res.options = RES_USE_EDNS0; in special_test_callback() 808 TEST_VERIFY (_res.options & RES_ROTATE); in special_test_callback() 809 _res.options |= RES_USE_EDNS0; in special_test_callback() [all …]
|
A D | res_data.c | 49 if ((_res.options & RES_INIT) == 0) in __res_close() 53 __res_iclose (&_res, false); in __res_close()
|
A D | res-close.c | 134 if (_res.nscount == 0) in libc_hidden_def() 138 __res_iclose (&_res, true); /* Close any VC sockets. */ in libc_hidden_def() 141 _res.options = 0; in libc_hidden_def()
|
A D | compat-hooks.c | 45 _res.__glibc_unused_qhook = hook; in res_send_setqhook() 52 _res.__glibc_unused_rhook = hook; in res_send_setrhook()
|
A D | tst-resolv-qtypes.c | 94 return res_nquery (&_res, domain, C_IN, type, answer, answer_length); in wrap_res_nquery() 100 return res_nquery (&_res, domain, C_IN, type, answer, answer_length); in wrap_res_nsearch() 106 return res_nquerydomain (&_res, "www", "example.com", C_IN, type, in wrap_res_nquerydomain() 114 int ret = res_nmkquery (&_res, QUERY, domain, C_IN, type, in wrap_res_nsend() 124 return res_nsend (&_res, buf, ret, answer, answer_length); in wrap_res_nsend()
|
A D | tst-bug18665.c | 128 _res.options |= RES_SNGLKUP; in do_test() 131 _res.options |= RES_SNGLKUPREOP; in do_test()
|
A D | res_hostalias.c | 30 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_hostalias_common()
|
A D | README | 30 referenced through `_res' if the RES_INIT bit is set in 31 `_res.options'. This fixes a potential security bug with programs 47 resolver state stored in the `_res' structure. Therefore, these 53 present. It can be accessed using `_res', which has been redefined as 78 these programs, manipulating the _res structure in threads other 81 * In Multi-threaded that manipulate the _res structure, calls to
|
A D | tst-resolv-edns.c | 398 ret = res_nsearch (&_res, probe_name, C_IN, T_A, buffer, size); in do_res_search() 401 ret = res_nquery (&_res, probe_name, C_IN, T_A, buffer, size); in do_res_search() 417 (&_res, example_stripped, "example", C_IN, T_A, buffer, size); in do_res_search() 501 _res.options |= RES_USE_EDNS0; in do_test() 504 _res.options |= RES_USE_DNSSEC; in do_test()
|
A D | tst-bug18665-tcp.c | 220 _res.options |= RES_SNGLKUP; in do_test() 223 _res.options |= RES_SNGLKUPREOP; in do_test()
|
A D | res_isourserver.c | 133 return res_ourserver_p (&_res, (const struct sockaddr_in6 *) inp); in res_isourserver()
|
A D | tst-resolv-search.c | 297 _res.nsaddr_list[0].sin_addr.s_addr = -1; in do_test_all() 298 _res.nsaddr_list[0].sin_port = htons (53); in do_test_all()
|
A D | resolv_context.c | 181 struct resolv_context *ctx = context_alloc (&_res); in context_get()
|
A D | Versions | 13 _res;
|
A D | res_query.c | 289 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def() 539 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def() 631 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_querydomain_common()
|
A D | compat-gethnamaddr.c | 390 if (_res.nsort && haveanswer > 1 && qtype == T_A) in getanswer() 887 for (j = 0 ; (unsigned)j < _res.nsort; j++) in addrsort() 888 if (_res.sort_list[j].addr.s_addr == in addrsort() 889 (((struct in_addr *)(*p))->s_addr & _res.sort_list[j].mask)) in addrsort()
|
A D | tst-resolv-trustad.c | 154 _res.options |= RES_TRUSTAD; in do_test()
|
A D | resolv.h | 162 #define _res (*__res_state()) macro
|
A D | tst-resolv-rotate.c | 235 _res.options |= RES_ROTATE; in do_test()
|
A D | res_debug.c | 251 int pfcode = _res.pfcode; in fp_nquery()
|
A D | res_send.c | 438 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def()
|