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
This commit is contained in:
Nardi Ivan
2022-09-25 13:31:04 +02:00
committed by Toni
parent b7b9577254
commit 39f9b8cadf
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -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);