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
@@ -3,7 +3,7 @@ Guessed flow protos: 0
DPI Packets (TCP): 4 (4.00 pkts/flow)
DPI Packets (UDP): 13 (4.33 pkts/flow)
Confidence DPI : 4 (flows)
Num dissector calls: 588 (147.00 diss/flow)
Num dissector calls: 589 (147.25 diss/flow)
LRU cache ookla: 0/0/0 (insert/search/found)
LRU cache bittorrent: 0/0/0 (insert/search/found)
LRU cache zoom: 0/0/0 (insert/search/found)
@@ -18,7 +18,7 @@ Automa risk mask: 1/0 (search/found)
Automa common alpns: 0/0 (search/found)
Patricia risk mask: 6/0 (search/found)
Patricia risk: 2/0 (search/found)
Patricia protocols: 10/4 (search/found)
Patricia protocols: 4/2 (search/found)
STUN 62 7620 2
GoogleHangoutDuo 33 6292 1