aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
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.c
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.c')
-rw-r--r--example/reader_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index b1f72c650..ac152813e 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1662,6 +1662,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
workflow->stats.dpi_packet_count[1]++;
else
workflow->stats.dpi_packet_count[2]++;
+ flow->dpi_packets++;
memset(&input_info, '\0', sizeof(input_info)); /* To be sure to set to "unknown" any fields */
/* Set here any information (easily) available; in this trivial example we don't have any */