From 21567e868642a3835491e8a5cf3650eee33b4d3c Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 8 May 2017 08:29:18 +0200 Subject: Added missing direction update with non TCP-UDP protocols --- example/ndpi_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 1ba77eb80..f756fbaf5 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -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; -- cgit v1.2.3