From 95fe21015d295632c45c40cabffebd7509eab7b6 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 6 May 2024 12:51:45 +0200 Subject: Remove "zoom" cache (#2420) This cache was added in b6b4967aa, when there was no real Zoom support. With 63f349319, a proper identification of multimedia stream has been added, making this cache quite useless: any improvements on Zoom classification should be properly done in Zoom dissector. Tested for some months with a few 10Gbits links of residential traffic: the cache pretty much never returned a valid hit. --- example/ndpiReader.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index f04ee9f1e..54bf00208 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3999,10 +3999,6 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_insert, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_search, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_found); - printf("\tLRU cache zoom: %llu/%llu/%llu (insert/search/found)\n", - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_insert, - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_search, - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_found); printf("\tLRU cache stun: %llu/%llu/%llu (insert/search/found)\n", (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_STUN].n_insert, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_STUN].n_search, @@ -4104,10 +4100,6 @@ static void printResults(u_int64_t processing_time_usec, u_int64_t setup_time_us (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_insert, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_search, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_BITTORRENT].n_found); - fprintf(results_file, "LRU cache zoom: %llu/%llu/%llu (insert/search/found)\n", - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_insert, - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_search, - (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_ZOOM].n_found); fprintf(results_file, "LRU cache stun: %llu/%llu/%llu (insert/search/found)\n", (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_STUN].n_insert, (long long unsigned int)cumulative_stats.lru_stats[NDPI_LRUCACHE_STUN].n_search, -- cgit v1.2.3