diff options
author | Luca Deri <deri@ntop.org> | 2016-05-31 12:58:44 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-05-31 12:58:44 +0200 |
commit | 2379443ef55986604f77711caab5c3118a26f791 (patch) | |
tree | 5150e44a93b5f64dcdae9ca48c6ba478c993633c /src | |
parent | 8c50b9692e9e024884ad3435170fb1b8d3558a24 (diff) |
Fix on multicast address check on teredo
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/teredo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/teredo.c b/src/lib/protocols/teredo.c index 762aac7de..079d1fbcd 100644 --- a/src/lib/protocols/teredo.c +++ b/src/lib/protocols/teredo.c @@ -30,7 +30,7 @@ void ndpi_search_teredo(struct ndpi_detection_module_struct *ndpi_struct, struct if(packet->udp && packet->iph - && ((ntohl(packet->iph->daddr) & 0xF0000000) != 0xE0000000 /* Not a multicast address */) + && ((ntohl(packet->iph->daddr) & 0xF0000000) == 0xE0000000 /* A multicast address */) && ((ntohs(packet->udp->source) == 3544) || (ntohs(packet->udp->dest) == 3544)) && (packet->payload_packet_len >= 40 /* IPv6 header */)) ndpi_int_change_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TEREDO, NDPI_PROTOCOL_UNKNOWN); |