Searched refs:statp (Results 1 - 9 of 9) sorted by relevance

/bionic/libc/dns/resolv/
H A Dres_init.c159 res_ninit(res_state statp) { argument
162 return (__res_vinit(statp, 0));
167 __res_vinit(res_state statp, int preinit) { argument
190 if ((statp->options & RES_INIT) != 0U)
191 res_ndestroy(statp);
194 statp->netid = NETID_UNSET;
195 statp->retrans = RES_TIMEOUT;
196 statp->retry = RES_DFLRETRY;
197 statp->options = RES_DEFAULT;
198 statp
493 res_setoptions(res_state statp, const char *options, const char *source) argument
628 res_nclose(res_state statp) argument
646 res_ndestroy(res_state statp) argument
656 res_get_nibblesuffix(res_state statp) argument
664 res_get_nibblesuffix2(res_state statp) argument
672 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument
724 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument
771 res_setnetcontext(res_state statp, const struct android_net_context *netcontext) argument
[all...]
H A Dres_query.c128 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 Dres_send.c233 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
737 get_timeout(const res_state statp, const int ns) argument
754 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
1085 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
1314 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument
1336 Perror(const res_state statp, FILE *file, const char *string, int error) argument
[all...]
H A Dres_debug.h26 # define Aerror(statp, file, string, error, address) /*empty*/
27 # define Perror(statp, file, string, error) /*empty*/
32 res_pquery(statp, query, size, stdout);\
H A Dres_private.h20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
H A Dres_mkquery.c116 res_nmkquery(res_state statp, argument
134 if (statp->options & RES_DEBUG)
147 hp->rd = (statp->options & RES_RECURSE) != 0U;
148 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U;
231 res_nopt(res_state statp, argument
242 if ((statp->options & RES_DEBUG) != 0U)
263 if (statp->options & RES_USE_DNSSEC) {
265 if (statp->options & RES_DEBUG)
H A Dres_debug.c137 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 Dres_cache.c2160 _resolv_populate_res_for_net(res_state statp) argument
2162 if (statp == NULL) {
2169 struct resolv_cache_info* info = _find_cache_info_locked(statp->netid);
2173 XLOG("%s: %u\n", __FUNCTION__, statp->netid);
2180 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) {
2181 if (statp->_u._ext.ext != NULL) {
2182 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen);
2183 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC;
2186 <= sizeof(statp->nsaddr_list[0])) {
2187 memcpy(&statp
[all...]
/bionic/libc/dns/include/
H A Dresolv_cache.h40 extern void _resolv_populate_res_for_net(struct __res_state* statp);

Completed in 78 milliseconds