Home
last modified time | relevance | path

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

/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()
116 if (dnsQueryEvent == nullptr) continue; in fromNetworkDnsEventReportedStr()
118 dnsQueryEvent->set_rcode(static_cast<NsRcode>(value)); in fromNetworkDnsEventReportedStr()
120 dnsQueryEvent->set_type(static_cast<NsType>(value)); in fromNetworkDnsEventReportedStr()
122 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(value)); in fromNetworkDnsEventReportedStr()
124 dnsQueryEvent->set_ip_version(static_cast<IpVersion>(value)); in fromNetworkDnsEventReportedStr()
126 dnsQueryEvent->set_protocol(static_cast<Protocol>(value)); in fromNetworkDnsEventReportedStr()
128 dnsQueryEvent->set_retry_times(value); in fromNetworkDnsEventReportedStr()
130 dnsQueryEvent->set_dns_server_index(value); in fromNetworkDnsEventReportedStr()
[all …]
/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp125 DnsQueryEvent* dnsQueryEvent = in query() local
133 dnsQueryEvent->set_latency_micros(saturate_cast<int32_t>(queryStopwatch.timeTakenUs())); in query()
134 dnsQueryEvent->set_dns_server_index(serverCount++); in query()
135 dnsQueryEvent->set_ip_version(ipFamilyToIPVersion(server.ss.ss_family)); in query()
136 dnsQueryEvent->set_protocol(PROTO_DOT); in query()
138 dnsQueryEvent->set_type(getQueryType(msg)); in query()
139 dnsQueryEvent->set_connected(connectTriggered); in query()
145 dnsQueryEvent->set_rcode( in query()
147 resolv_stats_add(statp->netid, IPSockAddr::toIPSockAddr(server.ss), dnsQueryEvent); in query()
150 dnsQueryEvent->set_rcode(NS_R_INTERNAL_ERROR); in query()
[all …]
Dres_send.cpp458 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend() local
459 dnsQueryEvent->set_latency_micros(cacheLatencyUs); in res_nsend()
460 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(cache_status)); in res_nsend()
461 dnsQueryEvent->set_type(getQueryType(msg)); in res_nsend()
621 DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event); in res_nsend() local
622 dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(cache_status)); in res_nsend()
627 dnsQueryEvent->set_latency_micros( in res_nsend()
629 dnsQueryEvent->set_dns_server_index(actualNs); in res_nsend()
630 dnsQueryEvent->set_ip_version(ipFamilyToIPVersion(receivedServerAddr.family())); in res_nsend()
631 dnsQueryEvent->set_retry_times(retry_count_for_event); in res_nsend()
[all …]