/bionic/libc/netbsd/resolv/ |
D | res_init.c | 161 res_ninit(res_state statp) { in res_ninit() argument 164 return (__res_vinit(statp, 0)); in res_ninit() 169 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument 182 if ((statp->options & RES_INIT) != 0U) in __res_vinit() 183 res_ndestroy(statp); in __res_vinit() 186 statp->retrans = RES_TIMEOUT; in __res_vinit() 187 statp->retry = RES_DFLRETRY; in __res_vinit() 188 statp->options = RES_DEFAULT; in __res_vinit() 189 statp->id = res_randomid(); in __res_vinit() 217 statp->nscount = 0; in __res_vinit() [all …]
|
D | res_query.c | 127 res_nquery(res_state statp, in res_nquery() argument 138 oflags = statp->_flags; in res_nquery() 144 if (statp->options & RES_DEBUG) in res_nquery() 148 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 151 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery() 152 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0U) in res_nquery() 153 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 157 if (statp->options & RES_DEBUG) in res_nquery() 160 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nquery() 163 n = res_nsend(statp, buf, n, answer, anslen); in res_nquery() [all …]
|
D | res_send.c | 234 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 242 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 243 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 252 if (EXT(statp).ext == NULL) in res_ourserver_p() 255 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 256 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 363 res_nsend(res_state statp, in res_nsend() argument 374 if (statp->nscount == 0) { in res_nsend() 384 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() 386 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() [all …]
|
D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument 32 res_pquery(statp, query, size, stdout);\
|
D | res_mkquery.c | 117 res_nmkquery(res_state statp, in res_nmkquery() argument 135 if (statp->options & RES_DEBUG) in res_nmkquery() 148 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 231 res_nopt(res_state statp, in res_nopt() argument 242 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 261 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 263 if (statp->options & RES_DEBUG) in res_nopt()
|
D | res_debug.c | 147 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 152 if (statp->options & mask) in fp_resstat() 159 do_section(const res_state statp, in do_section() argument 172 sflag = (statp->pfcode & pflag); in do_section() 173 if (statp->pfcode && !sflag) in do_section() 190 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 194 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 242 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 262 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 266 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() [all …]
|
D | res_private.h | 20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
D | res_cache.c | 2451 _resolv_populate_res_for_iface(res_state statp) in _resolv_populate_res_for_iface() argument 2456 if (statp) { in _resolv_populate_res_for_iface() 2459 if (statp->iface[0] == '\0') { // no interface set assign default in _resolv_populate_res_for_iface() 2460 _resolv_get_default_iface(statp->iface, sizeof(statp->iface)); in _resolv_populate_res_for_iface() 2465 info = _find_cache_info_locked(statp->iface); in _resolv_populate_res_for_iface() 2472 XLOG("_resolv_populate_res_for_iface: %s\n", statp->iface); in _resolv_populate_res_for_iface() 2479 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_iface() 2480 if (statp->_u._ext.ext != NULL) { in _resolv_populate_res_for_iface() 2481 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_iface() 2482 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_iface() [all …]
|
/bionic/libc/private/ |
D | resolv_cache.h | 89 extern int _resolv_populate_res_for_iface(struct __res_state* statp);
|