aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-03-01 21:50:47 +0100
committerGitHub <noreply@github.com>2023-03-01 21:50:47 +0100
commit22fb8349b96d19a6fe784c2323b674e13996b7ac (patch)
treebcf7d700f5dec0dd3075b383a1f2f3de835f4981 /example/reader_util.h
parent2768366969308ebf55c5804266baba72205618db (diff)
ndpiReader: print how many packets (per flow) were needed to perform full DPI (#1891)
Average values are already printed, but this change should ease to identify regressions/improvements.
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index 6f8e8ba20..b30ddbf1f 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -206,6 +206,7 @@ typedef struct ndpi_flow_info {
ndpi_protocol detected_protocol;
ndpi_confidence_t confidence;
u_int16_t num_dissector_calls;
+ u_int16_t dpi_packets;
// Flow data analysis
pkt_timeval src2dst_last_pkt_time, dst2src_last_pkt_time, flow_last_pkt_time;