Added missing direction update with non TCP-UDP protocols

This commit is contained in:
Luca
2017-05-08 08:29:18 +02:00
parent 1af3d571d9
commit 21567e8686
+2
View File
@@ -318,6 +318,8 @@ static struct ndpi_flow_info *get_ndpi_flow_info(struct ndpi_workflow * workflow
// non tcp/udp protocols
lower_port = 0;
upper_port = 0;
*src_to_dst_direction = (iph->saddr < iph->daddr) ? 1 : 0;
}
flow.protocol = iph->protocol, flow.vlan_id = vlan_id;