From 3e6cadbb76a3ebe9af7ff1b858f129116fbbb878 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 27 Jan 2023 07:09:34 +0100 Subject: ndpireader: fix "Discarded bytes" statistics (#1877) --- example/reader_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/reader_util.c b/example/reader_util.c index a3299f48b..5c2a45914 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1641,7 +1641,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, flow->has_human_readeable_strings = 0; } } else { // flow is NULL - workflow->stats.total_discarded_bytes++; + workflow->stats.total_discarded_bytes += header->len; return(nproto); } -- cgit v1.2.3