aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/wsd.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-02-10 19:09:11 +0100
committerLuca Deri <deri@ntop.org>2021-02-10 19:09:11 +0100
commitea0309d21b168d70b853986a342d08966012d07b (patch)
tree2b18956ccd7ab817ab23983c424b73de25495d3d /src/lib/protocols/wsd.c
parent76ac551ed385ad6e0e346b05b5c94dd7a00e693b (diff)
Removed now obsolete NDPI_DETECTION_SUPPORT_IPV6: code is more readeable now
Diffstat (limited to 'src/lib/protocols/wsd.c')
-rw-r--r--src/lib/protocols/wsd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/protocols/wsd.c b/src/lib/protocols/wsd.c
index 8732675b1..c557c7c52 100644
--- a/src/lib/protocols/wsd.c
+++ b/src/lib/protocols/wsd.c
@@ -37,10 +37,8 @@ void ndpi_search_wsd(struct ndpi_detection_module_struct *ndpi_struct,
if(packet->udp
&& (
(packet->iph && ((ntohl(packet->iph->daddr) & 0xF0000000) == 0xE0000000 /* A multicast address */))
-#ifdef NDPI_DETECTION_SUPPORT_IPV6
||
(packet->iphv6 && ntohl(packet->iphv6->ip6_dst.u6_addr.u6_addr32[0]) == 0xFF020000)
-#endif
)
&& (ntohs(packet->udp->dest) == WSD_PORT)
&& (packet->payload_packet_len >= 40)