/packages/modules/DnsResolver/ |
D | res_send.cpp | 146 static int send_vc(res_state statp, res_params* params, const uint8_t* buf, int buflen, 149 static int send_dg(res_state statp, res_params* params, const uint8_t* buf, int buflen, 295 static int res_ourserver_p(res_state statp, const sockaddr* sa) { in res_ourserver_p() argument 303 for (const IPSockAddr& ipsa : statp->nsaddrs) { in res_ourserver_p() 315 for (const IPSockAddr& ipsa : statp->nsaddrs) { in res_ourserver_p() 420 int res_nsend(res_state statp, const uint8_t* buf, int buflen, uint8_t* ans, int anssiz, int* rcode, in res_nsend() argument 435 resolv_cache_lookup(statp->netid, buf, buflen, ans, anssiz, &anslen, flags); in res_nsend() 440 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend() 448 resolv_populate_res_for_net(statp); in res_nsend() 450 if (statp->nameserverCount() == 0) { in res_nsend() [all …]
|
D | res_query.cpp | 102 int res_nquery(res_state statp, const char* name, // domain name in res_nquery() argument 121 statp->netcontext_flags); in res_nquery() 123 (statp->netcontext_flags & in res_nquery() 126 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 132 n = res_nsend(statp, buf, n, answer, anslen, &rcode, 0); in res_nquery() 137 if ((statp->netcontext_flags & in res_nquery() 139 (statp->_flags & RES_F_EDNS0ERR) && !retried) { in res_nquery() 204 int res_nsearch(res_state statp, const char* name, /* domain name */ in res_nsearch() argument 231 if (dots >= statp->ndots || trailing_dot) { in res_nsearch() 232 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, anslen, herrno); in res_nsearch() [all …]
|
D | DnsTlsDispatcher.cpp | 109 res_state statp, const Slice query, in query() argument 112 getOrderedAndUsableServerList(tlsServers, statp->netid, statp->_mark)); in query() 120 statp->event->mutable_dns_query_events()->add_dns_query_event(); in query() 124 code = this->query(server, statp->netid, statp->_mark, query, ans, resplen, in query() 140 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 144 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 151 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query() 155 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
|
D | res_cache.cpp | 1709 void resolv_populate_res_for_net(ResState* statp) { in resolv_populate_res_for_net() argument 1710 if (statp == nullptr) { in resolv_populate_res_for_net() 1713 LOG(INFO) << __func__ << ": netid=" << statp->netid; in resolv_populate_res_for_net() 1716 NetConfig* info = find_netconfig_locked(statp->netid); in resolv_populate_res_for_net() 1720 statp->sort_nameservers = sortNameservers; in resolv_populate_res_for_net() 1721 statp->nsaddrs = sortNameservers ? info->dnsStats.getSortedServers(PROTO_UDP) in resolv_populate_res_for_net() 1723 statp->search_domains = info->search_domains; in resolv_populate_res_for_net() 1724 statp->tc_mode = info->tc_mode; in resolv_populate_res_for_net() 1725 statp->enforce_dns_uid = info->enforceDnsUid; in resolv_populate_res_for_net()
|
D | res_mkquery.cpp | 194 int res_nopt(res_state statp, int n0, /* current offset in buffer */ in res_nopt() argument 221 if (statp->netcontext_flags & NET_CONTEXT_FLAG_USE_DNS_OVER_TLS) { in res_nopt()
|
D | resolv_cache.h | 49 void resolv_populate_res_for_net(ResState* statp);
|
D | DnsTlsDispatcher.h | 54 res_state _Nonnull statp, const netdutils::Slice query,
|
D | resolv_private.h | 176 int res_nsend(res_state statp, const uint8_t* buf, int buflen, uint8_t* ans, int anssiz, int* rcode,
|