/bionic/libc/dns/resolv/ |
D | res_init.c | 159 res_ninit(res_state statp) { in res_ninit() argument 162 return (__res_vinit(statp, 0)); in res_ninit() 167 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument 190 if ((statp->options & RES_INIT) != 0U) in __res_vinit() 191 res_ndestroy(statp); in __res_vinit() 194 statp->netid = NETID_UNSET; in __res_vinit() 195 statp->retrans = RES_TIMEOUT; in __res_vinit() 196 statp->retry = RES_DFLRETRY; in __res_vinit() 197 statp->options = RES_DEFAULT; in __res_vinit() 198 statp->id = res_randomid(); in __res_vinit() [all …]
|
D | res_send.c | 223 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 231 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 232 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 241 if (EXT(statp).ext == NULL) in res_ourserver_p() 244 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 245 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 351 res_nsend(res_state statp, in res_nsend() argument 362 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() 364 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() 370 statp->netid, buf, buflen, in res_nsend() [all …]
|
D | res_query.c | 128 res_nquery(res_state statp, in res_nquery() argument 139 oflags = statp->_flags; in res_nquery() 145 if (statp->options & RES_DEBUG) in res_nquery() 149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 152 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery() 153 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0U) in res_nquery() 154 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 158 if (statp->options & RES_DEBUG) in res_nquery() 161 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nquery() 164 n = res_nsend(statp, buf, n, answer, anslen); in res_nquery() [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 | 116 res_nmkquery(res_state statp, in res_nmkquery() argument 134 if (statp->options & RES_DEBUG) in res_nmkquery() 147 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 148 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U; in res_nmkquery() 231 res_nopt(res_state statp, in res_nopt() argument 242 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 263 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 265 if (statp->options & RES_DEBUG) in res_nopt()
|
D | res_debug.c | 155 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 160 if (statp->options & mask) in fp_resstat() 167 do_section(const res_state statp, in do_section() argument 180 sflag = (int)(statp->pfcode & pflag); in do_section() 181 if (statp->pfcode && !sflag) in do_section() 198 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 202 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 297 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 317 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 321 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 | 2166 _resolv_populate_res_for_net(res_state statp) in _resolv_populate_res_for_net() argument 2168 if (statp == NULL) { in _resolv_populate_res_for_net() 2175 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); in _resolv_populate_res_for_net() 2179 XLOG("%s: %u\n", __FUNCTION__, statp->netid); in _resolv_populate_res_for_net() 2186 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net() 2187 if (statp->_u._ext.ext != NULL) { in _resolv_populate_res_for_net() 2188 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net() 2189 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net() 2192 <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net() 2193 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net() [all …]
|
/bionic/libc/dns/include/ |
D | resolv_cache.h | 40 extern void _resolv_populate_res_for_net(struct __res_state* statp);
|