Home
last modified time | relevance | path

Searched refs:dnsQueryEvent (Results 1 – 3 of 3) sorted by relevance

/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp102 DnsQueryEvent* dnsQueryEvent = in query() local
109 dnsQueryEvent->set_latency_micros(saturate_cast<int32_t>(queryStopwatch.timeTakenUs())); in query()
110 dnsQueryEvent->set_dns_server_index(serverCount++); in query()
111 dnsQueryEvent->set_ip_version(ipFamilyToIPVersion(server.ss.ss_family)); in query()
112 dnsQueryEvent->set_protocol(PROTO_DOT); in query()
113 dnsQueryEvent->set_type(getQueryType(query.base(), query.size())); in query()
114 dnsQueryEvent->set_connected(connectTriggered); in query()
120 dnsQueryEvent->set_rcode( in query()
122 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
125 dnsQueryEvent->set_rcode(NS_R_INTERNAL_ERROR); in query()
[all …]
Dres_send.cpp443 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend() local
444 dnsQueryEvent->set_latency_micros(cacheLatencyUs); in res_nsend()
445 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(cache_status)); in res_nsend()
446 dnsQueryEvent->set_type(getQueryType(buf, buflen)); in res_nsend()
569 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend() local
570 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(cache_status)); in res_nsend()
575 dnsQueryEvent->set_latency_micros( in res_nsend()
577 dnsQueryEvent->set_dns_server_index(actualNs); in res_nsend()
578 dnsQueryEvent->set_ip_version(ipFamilyToIPVersion(receivedServerAddr.family())); in res_nsend()
579 dnsQueryEvent->set_retry_times(retry_count_for_event); in res_nsend()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp70 DnsQueryEvent* dnsQueryEvent = nullptr; in fromNetworkDnsEventReportedStr() local
77 dnsQueryEvent = event.mutable_dns_query_events()->add_dns_query_event(); in fromNetworkDnsEventReportedStr()
114 if (dnsQueryEvent == nullptr) continue; in fromNetworkDnsEventReportedStr()
116 dnsQueryEvent->set_rcode(static_cast<NsRcode>(value)); in fromNetworkDnsEventReportedStr()
118 dnsQueryEvent->set_type(static_cast<NsType>(value)); in fromNetworkDnsEventReportedStr()
120 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(value)); in fromNetworkDnsEventReportedStr()
122 dnsQueryEvent->set_ip_version(static_cast<IpVersion>(value)); in fromNetworkDnsEventReportedStr()
124 dnsQueryEvent->set_protocol(static_cast<Protocol>(value)); in fromNetworkDnsEventReportedStr()
126 dnsQueryEvent->set_retry_times(value); in fromNetworkDnsEventReportedStr()
128 dnsQueryEvent->set_dns_server_index(value); in fromNetworkDnsEventReportedStr()
[all …]