Searched refs:statp (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/netbsd/resolv/ |
D | res_init.c | 166 res_ninit(res_state statp) { in res_ninit() argument 169 return (__res_vinit(statp, 0)); in res_ninit() 173 int load_domain_search_list(res_state statp) { in load_domain_search_list() argument 178 strlcpy(statp->defdname, propvalue, sizeof(statp->defdname)); in load_domain_search_list() 179 if ((cp = strchr(statp->defdname, '\n')) != NULL) in load_domain_search_list() 181 cp = statp->defdname; in load_domain_search_list() 182 pp = statp->dnsrch; in load_domain_search_list() 183 while ( pp < statp->dnsrch + MAXDNSRCH ) { in load_domain_search_list() 198 if (pp > statp->dnsrch) in load_domain_search_list() 207 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument [all …]
|
D | res_send.c | 227 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 235 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 236 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 245 if (EXT(statp).ext == NULL) in res_ourserver_p() 248 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 249 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 356 res_nsend(res_state statp, in res_nsend() argument 366 if (statp->nscount == 0) { in res_nsend() 374 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() 376 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() [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_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_private.h | 20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
D | res_debug.c | 146 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 151 if (statp->options & mask) in fp_resstat() 158 do_section(const res_state statp, in do_section() argument 171 sflag = (statp->pfcode & pflag); in do_section() 172 if (statp->pfcode && !sflag) in do_section() 189 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 193 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 241 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 261 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 265 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() [all …]
|