Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
Dresolv_private.h92 struct ResState { struct
93 ResState(const android_net_context* netcontext, android::net::NetworkDnsEventReported* dnsEvent) in ResState() function
101 ResState clone(android::net::NetworkDnsEventReported* dnsEvent = nullptr) {
104 ResState copy; argument
154 ResState() {} in ResState() argument
174 int res_nquery(ResState*, const char*, int, int, std::span<uint8_t>, int*);
175 int res_nsearch(ResState*, const char*, int, int, std::span<uint8_t>, int*);
176 int res_nquerydomain(ResState*, const char*, const char*, int, int, std::span<uint8_t>, int*);
179 int res_nsend(ResState* statp, std::span<const uint8_t> msg, std::span<uint8_t> ans, int* rcode,
181 int res_nopt(ResState*, int, std::span<uint8_t>, int);
Dres_send.cpp157 static int setupUdpSocket(ResState* statp, const sockaddr* sockap, unique_fd* fd_out, int* terrno);
158 static int send_dg(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
160 static int send_vc(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
162 static int send_mdns(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* terrno,
170 static int res_private_dns_send(ResState*, const Slice query, const Slice answer, int* rcode,
172 static int res_tls_send(const std::list<DnsTlsServer>& tlsServers, ResState*, const Slice query,
174 static ssize_t res_doh_send(ResState*, const Slice query, const Slice answer, int* rcode);
314 static int res_ourserver_p(ResState* statp, const sockaddr* sa) { in res_ourserver_p()
439 int res_nsend(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* rcode, in res_nsend()
687 static struct timespec get_timeout(ResState* statp, const res_params* params, const int addrIndex) { in get_timeout()
[all …]
Dres_query.cpp102 int res_nquery(ResState* statp, const char* name, // domain name in res_nquery()
201 int res_nsearch(ResState* statp, const char* name, /* domain name */ in res_nsearch()
318 int res_nquerydomain(ResState* statp, const char* name, const char* domain, int cl, in res_nquerydomain()
Dresolv_cache.h49 struct ResState;
50 void resolv_populate_res_for_net(ResState* statp);
Dgethnamaddr.cpp99 static int dns_gethtbyname(ResState* res, const char* name, int af, getnamaddr* info);
381 ResState res(netcontext, event); in resolv_gethostbyname()
620 static int dns_gethtbyname(ResState* res, const char* name, int addr_type, getnamaddr* info) { in dns_gethtbyname()
699 ResState res(netcontext, event); in dns_gethtbyaddr()
Dgetaddrinfo.cpp154 static int res_searchN(const char* name, res_target* target, ResState* res, int* herrno);
155 static int res_querydomainN(const char* name, const char* domain, res_target* target, ResState* res,
1389 ResState res(netcontext, event); in dns_getaddrinfo()
1604 QueryResult doQuery(const char* name, res_target* t, ResState* res, in doQuery()
1636 ResState res_temp = res->clone(&event); in doQuery()
1670 static int res_queryN_parallel(const char* name, res_target* target, ResState* res, int* herrno) { in res_queryN_parallel()
1715 static int res_searchN(const char* name, res_target* target, ResState* res, int* herrno) { in res_searchN()
1826 static int res_querydomainN(const char* name, const char* domain, res_target* target, ResState* res, in res_querydomainN()
DDnsTlsDispatcher.h54 ResState* _Nonnull statp, const netdutils::Slice query,
Dres_mkquery.cpp192 int res_nopt(ResState* statp, int n0, /* current offset in buffer */ in res_nopt()
DDnsTlsDispatcher.cpp108 ResState* statp, const Slice query, in query()
Dres_cache.cpp1765 void resolv_populate_res_for_net(ResState* statp) { in resolv_populate_res_for_net()