Improved protocol detection exploiting IP-based guess

Reworked ndpi_reconcile_protocols() that is now called only in front of a match (less overhead)
This commit is contained in:
Luca Deri
2023-02-27 12:18:39 +01:00
parent d0b46dcf88
commit 6a2e8c9fb1
2 changed files with 73 additions and 11 deletions
+2 -3
View File
@@ -918,14 +918,13 @@ typedef enum {
NDPI_CONFIDENCE_DPI_PARTIAL_CACHE, /* Classification results based on some LRU cache with partial/incomplete DPI information */
NDPI_CONFIDENCE_DPI_CACHE, /* Classification results based on some LRU cache (i.e. correlation among sessions) */
NDPI_CONFIDENCE_DPI, /* Deep packet inspection */
NDPI_CONFIDENCE_MATCH_BY_IP, /* Classification obtained looking only at the IP addresses */
/*
IMPORTANT
Please keep in sync with
ndpi_confidence_get_name()
in ndpi_main.c
*/