diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-05-09 19:36:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 19:36:02 +0200 |
commit | 99d7066ea07d21bc282593c09fb6c306c67e09e3 (patch) | |
tree | 7460c7122b852e8b2e69ea52e382491d771f2fcd /tests/cfgs/default/result/wa_voice.pcap.out | |
parent | 684e041998406532c6ef1e899ebc94ca5049d938 (diff) |
Remove special handling of some TCP flows without SYN (#1965)
This piece of code has multiple problems:
* nDPI is able to detect some TCP protocols even with mid-flows (i.e.
without the initial packets of the session); TLS is the most
significative example
* since e6b332aa4a1399e33df68998cf8351bccaee3fc4 it is perfectly valid
to not pass the TCP Handshake packets to nDPI
* in any case, we shouldn't call `ndpi_detection_giveup()`. That
function is usually called by the application and we end up calling it
twice in some cases.
The simple solution is to completely remove that code: process these
kinds of flows like everyone else.
Note that the application can always avoid to pass to nDPI any TCP flows
without the initial handshake; the flow managemnt is always up to the
application.
Looking at the CI results, some rare flows are now processed significantly
longer. As a follow-up we could look into that.
Diffstat (limited to 'tests/cfgs/default/result/wa_voice.pcap.out')
-rw-r--r-- | tests/cfgs/default/result/wa_voice.pcap.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cfgs/default/result/wa_voice.pcap.out b/tests/cfgs/default/result/wa_voice.pcap.out index 76703f9bd..752871392 100644 --- a/tests/cfgs/default/result/wa_voice.pcap.out +++ b/tests/cfgs/default/result/wa_voice.pcap.out @@ -11,7 +11,7 @@ LRU cache bittorrent: 0/3/0 (insert/search/found) LRU cache zoom: 0/0/0 (insert/search/found) LRU cache stun: 2/18/12 (insert/search/found) LRU cache tls_cert: 0/0/0 (insert/search/found) -LRU cache mining: 0/2/0 (insert/search/found) +LRU cache mining: 0/1/0 (insert/search/found) LRU cache msteams: 0/0/0 (insert/search/found) LRU cache stun_zoom: 0/0/0 (insert/search/found) Automa host: 20/10 (search/found) |