Added check to ignore multicast packets marking the as Skype

This commit is contained in:
Luca Deri
2022-02-08 17:23:25 +01:00
parent d59f0327a5
commit 922a7be897
+4 -1
View File
@@ -72,7 +72,10 @@ static void ndpi_check_skype(struct ndpi_detection_module_struct *ndpi_struct, s
u_int32_t payload_len = packet->payload_packet_len;
/* No need to do ntohl() with 0xFFFFFFFF */
if(packet->iph && (packet->iph->daddr == 0xFFFFFFFF /* 255.255.255.255 */)) {
if(packet->iph
&& ((packet->iph->daddr == 0xFFFFFFFF /* 255.255.255.255 */)
|| ((ntohl(packet->iph->daddr) & 0xFFFFFF00) == 0xE0000000 /* multicast */)
)) {
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
return;
}