TINC: avoid processing SYN packets (#1676)

Since e6b332aa, we have proper support for detecting client/server
direction. So Tinc dissector is now able to properly initialize the
cache entry only when needed and not anymore at the SYN time; initializing
that entry for **every** SYN packets was a complete waste of resources.

Since 4896dabb, the various `struct ndpi_call_function_struct`
structures are not more separate objects and therefore comparing them
using only their pointers is bogus: this bug was triggered by this
change because `ndpi_str->callback_buffer_size_tcp_no_payload` is now 0.
This commit is contained in:
Ivan Nardi
2022-07-28 12:39:18 +02:00
committed by GitHub
parent d8d525fff2
commit 172e698bb8
185 changed files with 201 additions and 204 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ DPI Packets (UDP): 52 (1.68 pkts/flow)
DPI Packets (other): 4 (1.00 pkts/flow)
Confidence Match by IP : 3 (flows)
Confidence DPI : 60 (flows)
Num dissector calls: 348 (5.52 diss/flow)
Num dissector calls: 280 (4.44 diss/flow)
DNS 4 390 2
MDNS 2 174 2