From 0091f35e024cd55413a4b84b095828020e578120 Mon Sep 17 00:00:00 2001
From: Luca Deri <deri@ntop.org>
Date: Wed, 17 May 2017 15:50:59 +0200
Subject: Reworked flow structure handler

---
 example/ndpi_util.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'example/ndpi_util.h')

diff --git a/example/ndpi_util.h b/example/ndpi_util.h
index ca9f20274..950f65f5a 100644
--- a/example/ndpi_util.h
+++ b/example/ndpi_util.h
@@ -43,11 +43,12 @@
 
 // flow tracking
 typedef struct ndpi_flow_info {
+  u_int32_t hashval;
   u_int32_t lower_ip;
   u_int32_t upper_ip;
   u_int16_t lower_port;
   u_int16_t upper_port;
-  u_int8_t detection_completed, protocol, src_to_dst_direction;
+  u_int8_t detection_completed, protocol, bidirectional;
   u_int16_t vlan_id;
   struct ndpi_flow_struct *ndpi_flow;
   char lower_name[48], upper_name[48];
@@ -55,7 +56,7 @@ typedef struct ndpi_flow_info {
   u_int64_t last_seen;
   u_int64_t bytes;
   u_int32_t packets;
-
+  
   // result only, not used for flow identification
   ndpi_protocol detected_protocol;
 
-- 
cgit v1.2.3