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/websocket.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib/protocols/websocket.c') diff --git a/src/lib/protocols/websocket.c b/src/lib/protocols/websocket.c index 304fa6833..421f239a6 100644 --- a/src/lib/protocols/websocket.c +++ b/src/lib/protocols/websocket.c @@ -50,9 +50,6 @@ static void set_websocket_detected(struct ndpi_detection_module_struct *ndpi_str /* If no custom protocol has been detected */ if (flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) { - ndpi_search_tcp_or_udp(ndpi_struct, flow); - - ndpi_int_reset_protocol(flow); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_WEBSOCKET, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI); } } -- cgit v1.2.3