aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/teredo.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-11-21 00:32:32 +0100
committerLuca Deri <deri@ntop.org>2018-11-21 00:32:32 +0100
commit669fdf6b5f3657c638ffa8df6ff1baebf5b311b1 (patch)
treeaf6540946a53550ea3d198c7e232ea5ac8ae072e /src/lib/protocols/teredo.c
parent21504c849233d69b896fdff364b3933e8ec997d3 (diff)
Improved skype, teredo, netbios heuristics
Changed ndpi_detection_giveup() API: guess is now part of the call
Diffstat (limited to 'src/lib/protocols/teredo.c')
-rw-r--r--src/lib/protocols/teredo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/teredo.c b/src/lib/protocols/teredo.c
index 732b1d6c9..e377d09a4 100644
--- a/src/lib/protocols/teredo.c
+++ b/src/lib/protocols/teredo.c
@@ -32,7 +32,7 @@ void ndpi_search_teredo(struct ndpi_detection_module_struct *ndpi_struct, struct
NDPI_LOG_DBG(ndpi_struct,"search teredo\n");
if(packet->udp
&& packet->iph
- && ((ntohl(packet->iph->daddr) & 0xF0000000) == 0xE0000000 /* A multicast address */)
+ && ((ntohl(packet->iph->daddr) & 0xF0000000) != 0xE0000000 /* Not a multicast address */)
&& ((ntohs(packet->udp->source) == 3544) || (ntohs(packet->udp->dest) == 3544))
&& (packet->payload_packet_len >= 40 /* IPv6 header */)) {
NDPI_LOG_INFO(ndpi_struct,"found teredo\n");