/glibc-2.36/resolv/ |
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() 70 if (!(_res.options & RES_INIT)) in res_init() 71 _res.options = RES_DEFAULT; in res_init() 72 else if (_res.nscount > 0) in res_init() 73 __res_iclose (&_res, true); /* Close any VC sockets. */ in res_init() 78 if (!_res.id) in res_init() 79 _res.id = res_randomid (); in res_init() [all …]
|
D | tst-resolv-res_init-skeleton.c | 70 TEST_VERIFY (_res.options & RES_INIT); in check_chroot_working() 360 print_resp (stdout, &_res); in run_res_init() 379 print_resp (stdout, &_res); in run_res_init() 387 print_resp (stdout, &_res); in run_res_init() 396 print_resp (stdout, &_res); in run_res_init() 795 _res.options = RES_USE_EDNS0; in special_test_callback() 798 TEST_VERIFY (!(_res.options & RES_USE_EDNS0)); in special_test_callback() 799 _res.options |= RES_USE_EDNS0; in special_test_callback() 802 TEST_VERIFY (_res.options & RES_USE_EDNS0); in special_test_callback() 813 _res.options = RES_USE_EDNS0; in special_test_callback() [all …]
|
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()
|
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()
|
D | tst-resolv-noaaaa.c | 145 return res_nquery (&_res, qname, C_IN, qtype, buf, buflen); in libresolv_query() 149 return res_nsearch (&_res, qname, C_IN, qtype, buf, buflen); in libresolv_query() 153 return res_nquerydomain (&_res, qname, "", C_IN, qtype, buf, buflen); in libresolv_query() 166 int ret = res_nmkquery (&_res, QUERY, qname, C_IN, qtype, in libresolv_query() 170 return res_nsend (&_res, querybuf, ret, buf, buflen); in libresolv_query() 185 _res.options |= RES_NOAAAA; in do_test()
|
D | res_data.c | 49 if ((_res.options & RES_INIT) == 0) in __res_close() 53 __res_iclose (&_res, false); in __res_close()
|
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
|
D | compat-hooks.c | 45 _res.__glibc_unused_qhook = hook; in res_send_setqhook() 52 _res.__glibc_unused_rhook = hook; in res_send_setrhook()
|
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()
|
D | tst-bug18665.c | 128 _res.options |= RES_SNGLKUP; in do_test() 131 _res.options |= RES_SNGLKUPREOP; in do_test()
|
D | tst-bug18665-tcp.c | 220 _res.options |= RES_SNGLKUP; in do_test() 223 _res.options |= RES_SNGLKUPREOP; in do_test()
|
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()
|
D | res_hostalias.c | 30 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_hostalias_common()
|
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()
|
D | res_query.c | 305 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def() 555 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def() 647 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_querydomain_common()
|
D | res_isourserver.c | 133 return res_ourserver_p (&_res, (const struct sockaddr_in6 *) inp); in res_isourserver()
|
D | Versions | 13 _res;
|
D | resolv_context.c | 181 struct resolv_context *ctx = context_alloc (&_res); in context_get()
|
D | tst-resolv-trustad.c | 154 _res.options |= RES_TRUSTAD; in do_test()
|
D | resolv.h | 163 #define _res (*__res_state()) macro
|
D | tst-resolv-rotate.c | 235 _res.options |= RES_ROTATE; in do_test()
|
/glibc-2.36/sysdeps/pthread/ |
D | tst-_res1.c | 29 if (resp == &_res || resp == __res_state ()) in tf() 31 _res.retry = 24; in tf() 37 if (resp != &_res || resp != __res_state ()) in do_test() 39 if (_res.retry != 12) in do_test() 45 #undef _res in main() 46 extern struct __res_state _res; in main() 49 _res.retry = 12; in main() 50 if (pthread_create (&th, NULL, tf, &_res) != 0) in main() 56 do_test (&_res); in main() 64 do_test (&_res); in main()
|
D | tst-_res1mod1.c | 19 #undef _res 21 struct __res_state _res; variable
|
/glibc-2.36/support/ |
D | resolv_test.c | 1101 memset (_res.defdname, 0, sizeof (_res.defdname)); in set_search_path() 1102 memset (_res.dnsrch, 0, sizeof (_res.dnsrch)); in set_search_path() 1104 char *current = _res.defdname; in set_search_path() 1105 char *end = current + sizeof (_res.defdname); in set_search_path() 1117 _res.dnsrch[i] = current; in set_search_path() 1182 __res_iclose (&_res, true); in resolv_test_start() 1183 _res._u._ext.nscount = 0; in resolv_test_start() 1188 printf ("info: old timeout value: %d\n", _res.retrans); in resolv_test_start() 1189 printf ("info: old retry attempt value: %d\n", _res.retry); in resolv_test_start() 1190 printf ("info: old _res.options: 0x%lx\n", _res.options); in resolv_test_start() [all …]
|
/glibc-2.36/include/ |
D | resolv.h | 22 # undef _res 23 # define _res (*__resp) macro
|