Searched refs:_res (Results 1 – 15 of 15) sorted by relevance
123 struct __res_state _res variable188 if (!_res.retrans) in res_init()189 _res.retrans = RES_TIMEOUT; in res_init()190 if (!_res.retry) in res_init()191 _res.retry = 4; in res_init()192 if (!(_res.options & RES_INIT)) in res_init()193 _res.options = RES_DEFAULT; in res_init()199 if (!_res.id) in res_init()200 _res.id = (u_short)res_randomid(); in res_init()203 _res.nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1); in res_init()[all …]
154 if (_res.options & RES_DEBUG) { in Aerror()174 if (_res.options & RES_DEBUG) { in Perror()219 for (ns = 0; ns < _res.nscount; ns++) { in res_isourserver()220 const struct sockaddr_in *srv = &_res.nsaddr_list[ns]; in res_isourserver()344 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_send()352 DprintQ((_res.options & RES_DEBUG) || (_res.pfcode & RES_PRF_QUERY), in res_send()354 v_circuit = (_res.options & RES_USEVC) || buflen > PACKETSZ; in res_send()363 for (try = 0; try < _res.retry; try++) { in res_send()364 for (ns = 0; ns < _res.nscount; ns++) { in res_send()365 struct sockaddr_in *nsap = &_res.nsaddr_list[ns]; in res_send()[all …]
133 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_query()138 if (_res.options & RES_DEBUG) in res_query()146 if (_res.options & RES_DEBUG) in res_query()155 if (_res.options & RES_DEBUG) in res_query()164 if (_res.options & RES_DEBUG) in res_query()211 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_search()233 if (dots >= _res.ndots) { in res_search()247 if ((!dots && (_res.options & RES_DEFNAMES)) || in res_search()248 (dots && !trailing_dot && (_res.options & RES_DNSRCH))) { in res_search()251 for (domain = (const char * const *)_res.dnsrch; in res_search()[all …]
169 if (_res.options & RES_DEBUG) { in dprintf()402 if (_res.options & RES_USE_INET6) { in gethostanswer()480 if (_res.nsort && haveanswer > 1 && qtype == T_A) in gethostanswer()492 if (_res.options & RES_USE_INET6) in gethostanswer()528 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in _gethostbydnsname()587 if (_res.options & RES_USE_INET6) in _gethostbydnsname()651 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in _gethostbydnsaddr()716 old_options = _res.options; in _gethostbydnsaddr()717 _res.options &= ~RES_DNSRCH; in _gethostbydnsaddr()718 _res.options |= RES_DEFNAMES; in _gethostbydnsaddr()[all …]
144 statp = &_res; in fp_resstat()160 sflag = (int)(_res.pfcode & pflag); in do_section()161 if (_res.pfcode && !sflag) in do_section()172 (_res.pfcode & RES_PRF_HEAD1)) in do_section()176 if (rrnum == 0 && sflag != 0 && (_res.pfcode & RES_PRF_HEAD1)) in do_section()225 if ((_res.options & RES_INIT) == 0 && res_init() == -1) in fp_nquery()243 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX) || rcode) in fp_nquery()247 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEADX)) in fp_nquery()249 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD2)) { in fp_nquery()268 if ((!_res.pfcode) || (_res.pfcode & RES_PRF_HEAD1)) { in fp_nquery()[all …]
120 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_mkquery()125 if (_res.options & RES_DEBUG) in res_mkquery()136 hp->id = htons(++_res.id); in res_mkquery()138 hp->rd = (_res.options & RES_RECURSE) != 0; in res_mkquery()
264 if (_res.options & RES_DEBUG) in _getnetbydnsaddr()289 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in _getnetbydnsname()298 if (_res.options & RES_DEBUG) in _getnetbydnsname()310 _res.options |= RES_STAYOPEN | RES_USEVC; in _setnetdnsent()316 _res.options &= ~(RES_STAYOPEN | RES_USEVC); in _endnetdnsent()
135 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_update()493 _res.options |= RES_DEBUG; in res_update()538 _res.nsaddr_list[i].sin_addr = zptr->z_ns[i].nsaddr1; in res_update()539 _res.nsaddr_list[i].sin_family = AF_INET; in res_update()540 _res.nsaddr_list[i].sin_port = htons(NAMESERVER_PORT); in res_update()542 _res.nscount = (zptr->z_nscount < MAXNS) ? in res_update()
138 if (_res.options & RES_USE_INET6) { in gethostent()
123 if ((_res.options & RES_INIT) == 0 && res_init() == -1) { in res_mkupdate()135 hp->id = htons(++_res.id); in res_mkupdate()
128 if (_res.options & RES_USE_INET6) { /* XXX */ in gethostbyname()
101 #define __res_get_state() (( 0 != _res.nscount ) ? &_res : NULL )103 #define __res_state() _res
181 extern struct __res_state _res;
1111 PyObject *_res; \1116 _res = textiowrapper_closed_get(self, NULL); \1117 if (_res == NULL) \1119 r = PyObject_IsTrue(_res); \1120 Py_DECREF(_res); \
1130 PyObject *_res; \1135 _res = textiowrapper_closed_get(self, NULL); \1136 if (_res == NULL) \1138 r = PyObject_IsTrue(_res); \1139 Py_DECREF(_res); \