Home
last modified time | relevance | path

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

/dports/dns/dnsperf/dnsperf-2.7.0/src/
H A Dnet_doh.c972 static struct _doh_stats doh_stats; variable
976 memset(&doh_stats, 0, sizeof(doh_stats)); in perf_net_doh_stats_init()
982 for (i = 0; i < (sizeof(doh_stats.code) / sizeof(doh_stats.code[0])); i++) { in perf_net_doh_stats_compile()
983 doh_stats.code[i] += self->stats.code[i]; in perf_net_doh_stats_compile()
985 doh_stats.unknown_code += self->stats.unknown_code; in perf_net_doh_stats_compile()
995 for (i = 0; i < (sizeof(doh_stats.code) / sizeof(doh_stats.code[0])); i++) { in perf_net_doh_stats_print()
996 if (doh_stats.code[i]) { in perf_net_doh_stats_print()
1001 printf("%d: %zu", i + 100, doh_stats.code[i]); in perf_net_doh_stats_print()
1005 if (doh_stats.unknown_code) { in perf_net_doh_stats_print()
1008 printf("unknown: %zu", doh_stats.unknown_code); in perf_net_doh_stats_print()