This commit is contained in:
Luca Deri
2019-07-15 23:53:28 +02:00
parent 67dfddd065
commit f570eccf81
2 changed files with 26 additions and 10 deletions
+6 -2
View File
@@ -62,8 +62,12 @@ static u_int8_t is_google_flow(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_packet_struct *packet = &flow->packet;
if(packet->iph) {
if(google_ptree_match(ndpi_struct, (struct in_addr *)&packet->iph->saddr)
|| google_ptree_match(ndpi_struct, (struct in_addr *)&packet->iph->daddr)) {
struct in_addr saddr, daddr;
saddr.s_addr = packet->iph->saddr, daddr.s_addr = packet->iph->daddr;
if(google_ptree_match(ndpi_struct, &saddr)
|| google_ptree_match(ndpi_struct, &daddr)) {
return(1);
}
}