Reworked flow structure handler

This commit is contained in:
Luca Deri
2017-05-17 15:50:59 +02:00
parent f2730f06a0
commit 0091f35e02
3 changed files with 58 additions and 102 deletions
+3 -2
View File
@@ -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;