Hangout: avoid useless lookups in the protocol tree (#1755)

We already performed exactly these lookups in the generic code to
populate `flow->guessed_protocol_id_by_ip`: use it!

This code probably needs a deeper review, since it is basicaly a simple
matching on ip + port.
This commit is contained in:
Ivan Nardi
2022-10-25 18:24:03 +02:00
committed by GitHub
parent ca5ffc4988
commit de16fd35aa
121 changed files with 126 additions and 152 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ DPI Packets (UDP): 120 (1.21 pkts/flow)
Confidence Unknown : 14 (flows)
Confidence Match by port : 6 (flows)
Confidence DPI : 177 (flows)
Num dissector calls: 4789 (24.31 diss/flow)
Num dissector calls: 4793 (24.33 diss/flow)
LRU cache ookla: 0/0/0 (insert/search/found)
LRU cache bittorrent: 0/45/0 (insert/search/found)
LRU cache zoom: 0/0/0 (insert/search/found)
@@ -20,7 +20,7 @@ Automa risk mask: 18/0 (search/found)
Automa common alpns: 0/0 (search/found)
Patricia risk mask: 252/0 (search/found)
Patricia risk: 6/0 (search/found)
Patricia protocols: 359/38 (search/found)
Patricia protocols: 337/37 (search/found)
Unknown 24 6428 14
HTTP 780 1058113 34