From 32b50f5aa4a199d6f63408b95dbf675689668418 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Sun, 29 Oct 2023 12:14:20 +0100 Subject: IPv6: add support for IPv6 risk exceptions (#2122) --- example/ndpiReader.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index a22da5dac..aea2c4878 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3895,6 +3895,9 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us printf("\tPatricia risk mask: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK].n_found); + printf("\tPatricia risk mask IPv6: %llu/%llu (search/found)\n", + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK6].n_search, + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK6].n_found); printf("\tPatricia risk: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK].n_found); @@ -3997,6 +4000,9 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us fprintf(results_file, "Patricia risk mask: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK].n_found); + fprintf(results_file, "Patricia risk mask IPv6: %llu/%llu (search/found)\n", + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK6].n_search, + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK_MASK6].n_found); fprintf(results_file, "Patricia risk: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK].n_found); -- cgit v1.2.3