diff options
author | Micah Lyle <Micah.Lyle@viasat.com> | 2017-07-17 18:06:07 -0700 |
---|---|---|
committer | Micah Lyle <Micah.Lyle@viasat.com> | 2017-07-17 18:06:07 -0700 |
commit | 6e85b9344298dbba49d06951360c5e3c464d92ba (patch) | |
tree | 3f9b49fb160e9e11e4854970b1d487adaf9583e2 /example/ndpi_util.h | |
parent | 2e13e44b9cac363414bf6523864499820115ec8d (diff) |
Implementation for extra packet processing if desired
Diffstat (limited to 'example/ndpi_util.h')
-rw-r--r-- | example/ndpi_util.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/ndpi_util.h b/example/ndpi_util.h index f6d315748..45101cf10 100644 --- a/example/ndpi_util.h +++ b/example/ndpi_util.h @@ -36,6 +36,7 @@ #define MAX_IDLE_TIME 30000 #define IDLE_SCAN_BUDGET 1024 #define NUM_ROOTS 512 +#define MAX_EXTRA_PACKETS_TO_CHECK 7 #define MAX_NDPI_FLOWS 200000000 #define TICK_RESOLUTION 1000 #define MAX_NUM_IP_ADDRESS 5 /* len of ip address array */ @@ -56,7 +57,7 @@ typedef struct ndpi_flow_info { u_int32_t dst_ip; u_int16_t src_port; u_int16_t dst_port; - u_int8_t detection_completed, protocol, bidirectional; + u_int8_t detection_completed, protocol, bidirectional, check_extra_packets; u_int16_t vlan_id; struct ndpi_flow_struct *ndpi_flow; char src_name[48], dst_name[48]; @@ -64,7 +65,7 @@ typedef struct ndpi_flow_info { u_int64_t last_seen; u_int64_t src2dst_bytes, dst2src_bytes; u_int32_t src2dst_packets, dst2src_packets; - + // result only, not used for flow identification ndpi_protocol detected_protocol; |