aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2022-07-11 09:47:47 +0200
committerGitHub <noreply@github.com>2022-07-11 09:47:47 +0200
commitb4cb14ec1922b16a52c24324792f2bd7819f04a7 (patch)
treeb3b7d8f645c8d6c910f0b3c4f80bc3f891db452a /example/reader_util.h
parentdf599e5effaf1a76a89a014a1f488b27fa88cc52 (diff)
Keep track of how many dissectors calls we made for each flow (#1657)
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index c2a152d38..4f4ef68fe 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -203,6 +203,7 @@ typedef struct ndpi_flow_info {
// result only, not used for flow identification
ndpi_protocol detected_protocol;
ndpi_confidence_t confidence;
+ u_int16_t num_dissector_calls;
// Flow data analysis
pkt_timeval src2dst_last_pkt_time, dst2src_last_pkt_time, flow_last_pkt_time;
@@ -296,6 +297,7 @@ typedef struct ndpi_stats {
u_int16_t max_packet_len;
u_int64_t dpi_packet_count[3];
u_int64_t flow_confidence[NDPI_CONFIDENCE_MAX];
+ u_int64_t num_dissector_calls;
} ndpi_stats_t;