Skip to content

Commit

Permalink
DNS: another fix about the relationship between FPC and subclassifica…
Browse files Browse the repository at this point in the history
…tion (ntop#2709)

See: c669bb3
  • Loading branch information
IvanNardi authored Jan 31, 2025
1 parent 71bd585 commit 5424d14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/ndpi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10343,6 +10343,8 @@ static u_int16_t ndpi_automa_match_string_subprotocol(struct ndpi_detection_modu

return(flow->detected_protocol_stack[0]);
}
if(!flow && matching_protocol_id != NDPI_PROTOCOL_UNKNOWN)
return matching_protocol_id;

#ifdef NDPI_ENABLE_DEBUG_MESSAGES
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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)
LRU cache fpc_dns: 0/4/0 (insert/search/found)
LRU cache fpc_dns: 2/4/0 (insert/search/found)
Automa host: 4/4 (search/found)
Automa domain: 0/0 (search/found)
Automa tls cert: 0/0 (search/found)
Expand Down
2 changes: 1 addition & 1 deletion tests/cfgs/subclassification_disable/result/dns.pcap.out
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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)
LRU cache fpc_dns: 0/0/0 (insert/search/found)
LRU cache fpc_dns: 1/0/0 (insert/search/found)
Automa host: 3/3 (search/found)
Automa domain: 0/0 (search/found)
Automa tls cert: 0/0 (search/found)
Expand Down

0 comments on commit 5424d14

Please sign in to comment.