Merge branch 'dev' of https://github.com/ntop/nDPI into dev

This commit is contained in:
Luca
2019-08-29 15:22:46 +02:00
3 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -121,8 +121,9 @@ void ndpi_search_mdns(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
#ifdef NDPI_DETECTION_SUPPORT_IPV6
if(packet->iphv6 != NULL) {
const u_int32_t *daddr = packet->iphv6->ip6_dst.u6_addr.u6_addr32;
if(daddr[0] == htonl(0xff020000) /* && daddr[1] == 0 && daddr[2] == 0 && daddr[3] == htonl(0xfb) */) {
u_int32_t daddr_0 = packet->iphv6->ip6_dst.u6_addr.u6_addr32[0];
if(daddr_0 == htonl(0xff020000) /* && daddr[1] == 0 && daddr[2] == 0 && daddr[3] == htonl(0xfb) */) {
NDPI_LOG_INFO(ndpi_struct, "found MDNS with destination address ff02::fb\n");