mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-03 01:10:17 +00:00
Avoid useless host automa lookup (#1724)
The host automa is used for two tasks: * protocol sub-classification (obviously); * DGA evaluation: the idea is that if a domain is present in this automa, it can't be a DGA, regardless of its format/name. In most dissectors both checks are executed, i.e. the code is something like: ``` ndpi_match_host_subprotocol(..., flow->host_server_name, ...); ndpi_check_dga_name(..., flow->host_server_name,...); ``` In that common case, we can perform only one automa lookup: if we check the sub-classification before the DGA, we can avoid the second lookup in the DGA function itself.
This commit is contained in:
parent
01028ee779
commit
0a47f745cc
120 changed files with 127 additions and 124 deletions
|
|
@ -11,7 +11,7 @@ LRU cache stun: 0/0/0 (insert/search/found)
|
|||
LRU cache tls_cert: 0/0/0 (insert/search/found)
|
||||
LRU cache mining: 0/0/0 (insert/search/found)
|
||||
LRU cache msteams: 0/0/0 (insert/search/found)
|
||||
Automa host: 6/0 (search/found)
|
||||
Automa host: 3/0 (search/found)
|
||||
Automa domain: 3/0 (search/found)
|
||||
Automa tls cert: 0/0 (search/found)
|
||||
Automa risk mask: 3/0 (search/found)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue