From 39f9b8cadf7fda34ace6ac92d7bc015023047f1c Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Sat, 24 Sep 2022 12:57:56 +0200 Subject: DNS: change category of DNS flows DNS flows should have `NDPI_PROTOCOL_CATEGORY_NETWORK` as category, regardless of the subprotocol (if any). Follow-up of 83de3e47 --- src/lib/protocols/dns.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c index 63b2f2a9d..cd3a4cdc9 100644 --- a/src/lib/protocols/dns.c +++ b/src/lib/protocols/dns.c @@ -536,6 +536,7 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st NDPI_PROTOCOL_DNS); /* Category is always NDPI_PROTOCOL_CATEGORY_NETWORK, regardless of the subprotocol */ + flow->category = NDPI_PROTOCOL_CATEGORY_NETWORK; if(ret.app_protocol == NDPI_PROTOCOL_UNKNOWN) ret.master_protocol = checkDNSSubprotocol(s_port, d_port); -- cgit v1.2.3