/bionic/libc/dns/resolv/ |
H A D | res_mkquery.c | 117 res_nmkquery(res_state statp, argument 135 if (statp->options & RES_DEBUG) 148 hp->rd = (statp->options & RES_RECURSE) != 0U; 231 res_nopt(res_state statp, argument 242 if ((statp->options & RES_DEBUG) != 0U) 261 if (statp->options & RES_USE_DNSSEC) { 263 if (statp->options & RES_DEBUG)
|
H A D | res_query.c | 128 res_nquery(res_state statp, argument 139 oflags = statp->_flags; 145 if (statp->options & RES_DEBUG) 149 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 152 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 153 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0U) 154 n = res_nopt(statp, n, buf, sizeof(buf), anslen); 158 if (statp->options & RES_DEBUG) 161 RES_SET_H_ERRNO(statp, NO_RECOVERY); 164 n = res_nsend(statp, bu 222 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 378 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 423 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_init.c | 160 res_ninit(res_state statp) { argument 163 return (__res_vinit(statp, 0)); 168 __res_vinit(res_state statp, int preinit) { argument 191 if ((statp->options & RES_INIT) != 0U) 192 res_ndestroy(statp); 195 statp->netid = NETID_UNSET; 196 statp->retrans = RES_TIMEOUT; 197 statp->retry = RES_DFLRETRY; 198 statp->options = RES_DEFAULT; 199 statp 492 res_setoptions(res_state statp, const char *options, const char *source) argument 627 res_nclose(res_state statp) argument 645 res_ndestroy(res_state statp) argument 655 res_get_nibblesuffix(res_state statp) argument 663 res_get_nibblesuffix2(res_state statp) argument 671 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 723 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument 770 res_setnetid(res_state statp, unsigned netid) argument 777 res_setmark(res_state statp, unsigned mark) argument [all...] |
H A D | res_debug.c | 137 fp_resstat(const res_state statp, FILE *file) { argument 142 if (statp->options & mask) 149 do_section(const res_state statp, argument 162 sflag = (int)(statp->pfcode & pflag); 163 if (statp->pfcode && !sflag) 180 (statp->pfcode & RES_PRF_HEAD1)) 184 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) 279 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument 299 if ((!statp->pfcode) || (statp [all...] |
H A D | res_send.c | 233 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument 241 for (ns = 0; ns < statp->nscount; ns++) { 242 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); 251 if (EXT(statp).ext == NULL) 254 for (ns = 0; ns < statp->nscount; ns++) { 255 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); 361 res_nsend(res_state statp, argument 372 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), 374 v_circuit = (statp 733 get_timeout(const res_state statp, const int ns) argument 750 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, time_t* at, int* rcode, int* delay) argument 1080 send_dg(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int *v_circuit, int *gotsomewhere, time_t *at, int *rcode, int* delay) argument 1317 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument 1339 Perror(const res_state statp, FILE *file, const char *string, int error) argument [all...] |
H A D | res_cache.c | 2111 _resolv_populate_res_for_net(res_state statp) argument 2113 if (statp == NULL) { 2120 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid); 2124 XLOG("%s: %u\n", __FUNCTION__, statp->netid); 2131 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { 2132 if (statp->_u._ext.ext != NULL) { 2133 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); 2134 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; 2137 <= sizeof(statp->nsaddr_list[0])) { 2138 memcpy(&statp [all...] |