Home
last modified time | relevance | path

Searched refs:_res (Results 1 – 25 of 73) sorted by relevance

123

/glibc-2.36/resolv/
Dres_libc.c66 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 …]
Dtst-resolv-res_init-skeleton.c70 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 …]
Dtst-resolv-qtypes.c94 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()
Dres-close.c134 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()
Dtst-resolv-noaaaa.c145 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()
Dres_data.c49 if ((_res.options & RES_INIT) == 0) in __res_close()
53 __res_iclose (&_res, false); in __res_close()
DREADME30 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
Dcompat-hooks.c45 _res.__glibc_unused_qhook = hook; in res_send_setqhook()
52 _res.__glibc_unused_rhook = hook; in res_send_setrhook()
Dtst-resolv-edns.c398 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()
Dtst-bug18665.c128 _res.options |= RES_SNGLKUP; in do_test()
131 _res.options |= RES_SNGLKUPREOP; in do_test()
Dtst-bug18665-tcp.c220 _res.options |= RES_SNGLKUP; in do_test()
223 _res.options |= RES_SNGLKUPREOP; in do_test()
Dtst-resolv-search.c297 _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()
Dres_hostalias.c30 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_hostalias_common()
Dcompat-gethnamaddr.c390 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()
Dres_query.c305 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()
Dres_isourserver.c133 return res_ourserver_p (&_res, (const struct sockaddr_in6 *) inp); in res_isourserver()
DVersions13 _res;
Dresolv_context.c181 struct resolv_context *ctx = context_alloc (&_res); in context_get()
Dtst-resolv-trustad.c154 _res.options |= RES_TRUSTAD; in do_test()
Dresolv.h163 #define _res (*__res_state()) macro
Dtst-resolv-rotate.c235 _res.options |= RES_ROTATE; in do_test()
/glibc-2.36/sysdeps/pthread/
Dtst-_res1.c29 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()
Dtst-_res1mod1.c19 #undef _res
21 struct __res_state _res; variable
/glibc-2.36/support/
Dresolv_test.c1101 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/
Dresolv.h22 # undef _res
23 # define _res (*__resp) macro

123