From e8e4b9e8fff7a71e2770ff5a38e92506b508c72f Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 27 Oct 2023 13:58:15 +0200 Subject: IPv6: add support for IPv6 risk tree (#2118) Fix the script to download crawler addressess --- 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 8a5f2fcd9..a22da5dac 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3898,6 +3898,9 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us 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); + printf("\tPatricia risk IPv6: %llu/%llu (search/found)\n", + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK6].n_search, + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK6].n_found); printf("\tPatricia protocols: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_PROTOCOLS].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_PROTOCOLS].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: %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); + fprintf(results_file, "Patricia risk IPv6: %llu/%llu (search/found)\n", + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK6].n_search, + (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_RISK6].n_found); fprintf(results_file, "Patricia protocols: %llu/%llu (search/found)\n", (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_PROTOCOLS].n_search, (long long unsigned int)cumulative_stats.patricia_stats[NDPI_PTREE_PROTOCOLS].n_found); -- cgit v1.2.3