Home
last modified time | relevance | path

Searched refs:res_state (Results 1 – 10 of 10) sorted by relevance

/system/netd/resolv/
Dresolv_private.h123 typedef struct __res_state* res_state; typedef
212 int res_ninit(res_state);
215 int res_nquery(res_state, const char*, int, int, u_char*, int, int*);
216 int res_nsearch(res_state, const char*, int, int, u_char*, int, int*);
217 int res_nquerydomain(res_state, const char*, const char*, int, int, u_char*, int, int*);
218 int res_nmkquery(res_state, int, const char*, int, int, const u_char*, int, const u_char*, u_char*,
220 int res_nsend(res_state, const u_char*, int, u_char*, int, int*, uint32_t);
221 void res_nclose(res_state);
222 int res_nopt(res_state, int, u_char*, int, int);
223 int res_vinit(res_state, int);
[all …]
Dres_init.cpp99 static void res_setoptions(res_state, const char*, const char*);
126 int res_ninit(res_state statp) { in res_ninit()
131 int res_vinit(res_state statp, int preinit) { in res_vinit()
202 static void res_setoptions(res_state statp, const char* options, const char* source) { in res_setoptions()
279 void res_nclose(res_state statp) { in res_nclose()
295 void res_ndestroy(res_state statp) { in res_ndestroy()
302 void res_setservers(res_state statp, const sockaddr_union* set, int cnt) { in res_setservers()
347 int res_getservers(res_state statp, sockaddr_union* set, int cnt) { in res_getservers()
386 void res_setnetcontext(res_state statp, const struct android_net_context* netcontext) { in res_setnetcontext()
Dres_send.cpp121 static struct sockaddr* get_nsaddr(res_state, size_t);
122 static int send_vc(res_state, res_params* params, const u_char*, int, u_char*, int, int*, int,
124 static int send_dg(res_state, res_params* params, const u_char*, int, u_char*, int, int*, int, int*,
126 static void Aerror(const res_state, const char*, int, const struct sockaddr*, int);
127 static void Perror(const res_state, const char*, int);
133 static int res_tls_send(res_state, const Slice query, const Slice answer, int* rcode,
267 static int res_ourserver_p(const res_state statp, const sockaddr* sa) { in res_ourserver_p()
376 int res_nsend(res_state statp, const u_char* buf, int buflen, u_char* ans, int anssiz, int* rcode, in res_nsend()
668 static struct sockaddr* get_nsaddr(res_state statp, size_t n) { in get_nsaddr()
686 static struct timespec get_timeout(const res_state statp, const res_params* params, const int ns) { in get_timeout()
[all …]
Dgethnamaddr.cpp108 static struct hostent* getanswer(const querybuf*, int, const char*, int, res_state, struct hostent*,
116 static void addrsort(char**, int, res_state);
122 static int gethostbyname_internal(const char* name, int af, res_state res, hostent* hp, char* hbuf,
124 static int gethostbyname_internal_real(const char* name, int af, res_state res, hostent* hp,
145 res_state res, struct hostent* hent, char* buf, size_t buflen, in getanswer()
411 static int gethostbyname_internal_real(const char* name, int af, res_state res, hostent* hp, in gethostbyname_internal_real()
496 static int gethostbyname_internal(const char* name, int af, res_state res, hostent* hp, char* hbuf, in gethostbyname_internal()
606 res_state res = res_get_state(); in netbsd_gethostent_r()
723 static void addrsort(char** ap, int num, res_state res) { in addrsort()
779 res_state res = res_get_state(); in dns_gethtbyname()
[all …]
Dres_query.cpp109 int res_nquery(res_state statp, const char* name, // domain name in res_nquery()
204 int res_nsearch(res_state statp, const char* name, /* domain name */ in res_nsearch()
342 int res_nquerydomain(res_state statp, const char* name, const char* domain, int cl, in res_nquerydomain()
Dres_mkquery.cpp102 int res_nmkquery(res_state statp, int op, /* opcode of query */ in res_nmkquery()
197 int res_nopt(res_state statp, int n0, /* current offset in buffer */ in res_nopt()
Dres_state.cpp120 res_state res_get_state(void) { in res_get_state()
Dgetaddrinfo.cpp151 static int res_queryN(const char* name, res_target* target, res_state res, int* herrno);
152 static int res_searchN(const char* name, res_target* target, res_state res, int* herrno);
153 static int res_querydomainN(const char* name, const char* domain, res_target* target, res_state res,
1436 res_state res = res_get_state(); in dns_getaddrinfo()
1572 static int res_queryN(const char* name, res_target* target, res_state res, int* herrno) { in res_queryN()
1668 static int res_searchN(const char* name, res_target* target, res_state res, int* herrno) { in res_searchN()
1794 static int res_querydomainN(const char* name, const char* domain, res_target* target, res_state res, in res_querydomainN()
DAndroid.bp60 "res_state.cpp",
Dres_cache.cpp1869 void _resolv_populate_res_for_net(res_state statp) { in _resolv_populate_res_for_net()