aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-04-04 14:39:29 +0200
committerGitHub <noreply@github.com>2023-04-04 14:39:29 +0200
commit25c111191189f64c4077f9d0609b0fdbdc12c4ad (patch)
tree61f9def5c87b76e0bc2b74e037720726deb0a24e /example/ndpiReader.c
parentf1193d5e6f7680e6b8195eea33d740987619ac9c (diff)
fuzz: add a new fuzzer triggering the payload analyzer function(s) (#1926)
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 452c0f5ae..6ac994802 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -253,7 +253,7 @@ static int dpdk_port_id = 0, dpdk_run_capture = 1;
void test_lib(); /* Forward */
-extern void ndpi_report_payload_stats();
+extern void ndpi_report_payload_stats(int print);
extern int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverted_logic);
/* ********************************** */
@@ -2746,7 +2746,7 @@ static void printFlowsStats() {
FILE *out = results_file ? results_file : stdout;
if(enable_payload_analyzer)
- ndpi_report_payload_stats();
+ ndpi_report_payload_stats(1);
for(thread_id = 0; thread_id < num_threads; thread_id++)
total_flows += ndpi_thread_info[thread_id].workflow->num_allocated_flows;