diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2022-09-28 16:44:59 +0200 |
---|---|---|
committer | Toni <matzeton@googlemail.com> | 2022-09-28 21:09:27 +0200 |
commit | a27538b764c85084980eef40cc7751c02a4af216 (patch) | |
tree | 3c63846a3ea970082d6fdf9a6c4dfffabbdbb274 /src/lib/protocols/ajp.c | |
parent | ac7a3669dabef5b084f00c3a52fa6c63b0a0a768 (diff) |
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
Diffstat (limited to 'src/lib/protocols/ajp.c')
-rw-r--r-- | src/lib/protocols/ajp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/protocols/ajp.c b/src/lib/protocols/ajp.c index 97313f4a1..2f58f1c70 100644 --- a/src/lib/protocols/ajp.c +++ b/src/lib/protocols/ajp.c @@ -58,11 +58,6 @@ static void set_ajp_detected(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) { - ndpi_search_tcp_or_udp(ndpi_struct, flow); - - /* If no custom protocol has been detected */ - /* if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) */ - ndpi_int_reset_protocol(flow); ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_AJP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI); } } |