From a27538b764c85084980eef40cc7751c02a4af216 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Wed, 28 Sep 2022 16:44:59 +0200 Subject: Remove unused code LRU callbacks have been added in 460ff3c7a, but they have never been used and they have never been extended to the other LRU caches. `ndpi_search_tcp_or_udp()` basically returns the classification by port/ip of the flow; calling it from the dissector is useless. The same for TOR detection: ips are checked in the generic code --- src/lib/protocols/stun.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/lib/protocols/stun.c') diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index a09e898d6..d60270ecc 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -96,12 +96,7 @@ static void ndpi_int_stun_add_connection(struct ndpi_detection_module_struct *nd #endif ndpi_lru_add_to_cache(ndpi_struct->stun_cache, key, app_proto); - if(ndpi_struct->ndpi_notify_lru_add_handler_ptr) - ndpi_struct->ndpi_notify_lru_add_handler_ptr(ndpi_stun_cache, key, app_proto); - ndpi_lru_add_to_cache(ndpi_struct->stun_cache, key_rev, app_proto); - if(ndpi_struct->ndpi_notify_lru_add_handler_ptr) - ndpi_struct->ndpi_notify_lru_add_handler_ptr(ndpi_stun_cache, key_rev, app_proto); } } } -- cgit v1.2.3