Home
last modified time | relevance | path

Searched refs:statp (Results 1 – 8 of 8) sorted by relevance

/packages/modules/DnsResolver/
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,
314 static int res_ourserver_p(ResState* statp, const sockaddr* sa) { in res_ourserver_p() argument
322 for (const IPSockAddr& ipsa : statp->nsaddrs) { in res_ourserver_p()
334 for (const IPSockAddr& ipsa : statp->nsaddrs) { in res_ourserver_p()
439 int res_nsend(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* rcode, in res_nsend() argument
453 ResolvCacheStatus cache_status = resolv_cache_lookup(statp->netid, msg, ans, &anslen, flags); in res_nsend()
458 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend()
[all …]
Dres_query.cpp102 int res_nquery(ResState* statp, const char* name, // domain name in res_nquery() argument
118 n = res_nmkquery(QUERY, name, cl, type, {}, buf, statp->netcontext_flags); in res_nquery()
120 (statp->netcontext_flags & in res_nquery()
123 n = res_nopt(statp, n, buf, answer.size()); in res_nquery()
129 n = res_nsend(statp, std::span(buf, n), answer, &rcode, 0); in res_nquery()
134 if ((statp->netcontext_flags & in res_nquery()
136 (statp->flags & RES_F_EDNS0ERR) && !retried) { in res_nquery()
201 int res_nsearch(ResState* statp, const char* name, /* domain name */ in res_nsearch() argument
227 if (dots >= statp->ndots || trailing_dot) { in res_nsearch()
228 ret = res_nquerydomain(statp, name, NULL, cl, type, answer, herrno); in res_nsearch()
[all …]
DDnsTlsDispatcher.cpp108 ResState* statp, const Slice query, in query() argument
112 getOrderedAndUsableServerList(tlsServers, statp->netid, statp->mark)); in query()
126 statp->event->mutable_dns_query_events()->add_dns_query_event(); in query()
130 code = this->query(server, statp->netid, statp->mark, query, ans, resplen, in query()
147 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()
158 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
165 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
Dres_mkquery.cpp192 int res_nopt(ResState* statp, int n0, /* current offset in buffer */ in res_nopt() argument
217 if (statp->netcontext_flags & NET_CONTEXT_FLAG_USE_DNS_OVER_TLS) { in res_nopt()
Dres_cache.cpp1765 void resolv_populate_res_for_net(ResState* statp) { in resolv_populate_res_for_net() argument
1766 if (statp == nullptr) { in resolv_populate_res_for_net()
1769 LOG(DEBUG) << __func__ << ": netid=" << statp->netid; in resolv_populate_res_for_net()
1772 NetConfig* info = find_netconfig_locked(statp->netid); in resolv_populate_res_for_net()
1776 statp->sort_nameservers = sortNameservers; in resolv_populate_res_for_net()
1777 statp->nsaddrs = sortNameservers ? info->dnsStats.getSortedServers(PROTO_UDP) in resolv_populate_res_for_net()
1779 statp->search_domains = info->search_domains; in resolv_populate_res_for_net()
1780 statp->tc_mode = info->tc_mode; in resolv_populate_res_for_net()
1781 statp->enforce_dns_uid = info->enforceDnsUid; in resolv_populate_res_for_net()
Dresolv_cache.h50 void resolv_populate_res_for_net(ResState* statp);
DDnsTlsDispatcher.h54 ResState* _Nonnull statp, const netdutils::Slice query,
Dresolv_private.h179 int res_nsend(ResState* statp, std::span<const uint8_t> msg, std::span<uint8_t> ans, int* rcode,