aboutsummaryrefslogtreecommitdiff
path: root/example/ndpi_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r--example/ndpi_util.c2
1 files changed, 2 insertions, 0 deletions
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;