aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-08-29 13:40:44 +0200
committerLuca <deri@ntop.org>2019-08-29 13:40:44 +0200
commit9a6f6d9fe429e1de4316b324a459db345dccfcbb (patch)
treed1f6209314676e4e3206e435723ba11312ab9785 /example/reader_util.h
parente4e40e3c70e2cd49fd537a526fa70805c8c391c5 (diff)
Implemented IAT (Inter Arrival Time) stats
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index 1ca498299..8f248a5f0 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -148,7 +148,7 @@ typedef struct ndpi_flow_info {
ndpi_protocol detected_protocol;
// Flow data analysis
- struct ndpi_analyze_struct *pktlen_c_to_s, *pktlen_s_to_c;
+ struct ndpi_analyze_struct *iat_c_to_s, *iat_s_to_c;
char info[96];
char host_server_name[256];
@@ -167,6 +167,8 @@ typedef struct ndpi_flow_info {
void *src_id, *dst_id;
+ struct timeval src2dst_last_pkt_time, dst2src_last_pkt_time;
+
// Entropy fields
u_int16_t src2dst_pkt_len[MAX_NUM_PKTS]; /*!< array of packet appdata lengths */
struct timeval src2dst_pkt_time[MAX_NUM_PKTS]; /*!< array of arrival times */