Home
last modified time | relevance | path

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

/resolv/
A 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()
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 Dtst-resolv-res_init-skeleton.c70 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 Dres_data.c49 if ((_res.options & RES_INIT) == 0) in __res_close()
53 __res_iclose (&_res, false); in __res_close()
A 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()
A Dcompat-hooks.c45 _res.__glibc_unused_qhook = hook; in res_send_setqhook()
52 _res.__glibc_unused_rhook = hook; in res_send_setrhook()
A 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()
A Dtst-bug18665.c128 _res.options |= RES_SNGLKUP; in do_test()
131 _res.options |= RES_SNGLKUPREOP; in do_test()
A Dres_hostalias.c30 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in context_hostalias_common()
A 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
A 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()
A Dtst-bug18665-tcp.c220 _res.options |= RES_SNGLKUP; in do_test()
223 _res.options |= RES_SNGLKUPREOP; in do_test()
A Dres_isourserver.c133 return res_ourserver_p (&_res, (const struct sockaddr_in6 *) inp); in res_isourserver()
A 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()
A Dresolv_context.c181 struct resolv_context *ctx = context_alloc (&_res); in context_get()
A DVersions13 _res;
A Dres_query.c289 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 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()
A Dtst-resolv-trustad.c154 _res.options |= RES_TRUSTAD; in do_test()
A Dresolv.h162 #define _res (*__res_state()) macro
A Dtst-resolv-rotate.c235 _res.options |= RES_ROTATE; in do_test()
A Dres_debug.c251 int pfcode = _res.pfcode; in fp_nquery()
A Dres_send.c438 RES_SET_H_ERRNO (&_res, NETDB_INTERNAL); in libc_hidden_def()

Completed in 49 milliseconds