aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-06-21 12:41:00 +0200
committerGitHub <noreply@github.com>2025-06-21 12:41:00 +0200
commitaa6dcad15e50c0a149b51d2f4ea6fdcd914a09ea (patch)
tree2cb034ed730960ac7eb1f62fb1335be8b209b51c /example/reader_util.h
parenta671226078347ed058a6ddcbfebd27e8a524bd1d (diff)
ndpiReader: print categories summary (#2895)
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index b755d3ab6..bbd1ac949 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -378,6 +378,9 @@ typedef struct ndpi_stats {
u_int64_t *fpc_protocol_counter;
u_int64_t *fpc_protocol_counter_bytes;
u_int32_t *fpc_protocol_flows;
+ u_int64_t category_counter[NDPI_PROTOCOL_NUM_CATEGORIES];
+ u_int64_t category_counter_bytes[NDPI_PROTOCOL_NUM_CATEGORIES];
+ u_int32_t category_flows[NDPI_PROTOCOL_NUM_CATEGORIES];
u_int32_t ndpi_flow_count;
u_int32_t flow_count[3];
u_int64_t tcp_count, udp_count;