diff options
author | Luca <deri@ntop.org> | 2023-12-21 11:11:22 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2023-12-21 11:11:28 +0100 |
commit | 28b1ce41cb754d0fb7437b89372bde66a9231fd5 (patch) | |
tree | 9f34b394c7556bd9c61c462c634469fe975ef724 /src | |
parent | a5595d16c0f24924656813eccd0f0ac5c17c56a6 (diff) |
MDNS fix
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c index 9a220024e..2c7adac87 100644 --- a/src/lib/protocols/dns.c +++ b/src/lib/protocols/dns.c @@ -700,7 +700,7 @@ static void ndpi_search_dns(struct ndpi_detection_module_struct *ndpi_struct, st char _hostname[256]; ret.master_protocol = NDPI_PROTOCOL_UNKNOWN; - ret.app_protocol = (d_port == LLMNR_PORT) ? NDPI_PROTOCOL_LLMNR : ((d_port == MDNS_PORT) ? NDPI_PROTOCOL_MDNS : NDPI_PROTOCOL_DNS); + ret.app_protocol = (d_port == LLMNR_PORT) ? NDPI_PROTOCOL_LLMNR : (((d_port == MDNS_PORT) && isLLMNRMulticastAddress(packet) ) ? NDPI_PROTOCOL_MDNS : NDPI_PROTOCOL_DNS); if(invalid) { NDPI_EXCLUDE_PROTO(ndpi_struct, flow); |