aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2022-09-24 12:57:56 +0200
committerToni <matzeton@googlemail.com>2022-09-25 13:31:04 +0200
commit39f9b8cadf7fda34ace6ac92d7bc015023047f1c (patch)
tree5b27cc53f76e64cd0cb538594518dcb921864a27 /src/lib/protocols
parentb7b9577254adbd86ac7984bd215c2b7813c9c8ec (diff)
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
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/dns.c1
1 files changed, 1 insertions, 0 deletions
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);