diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-01-27 07:09:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 07:09:34 +0100 |
commit | 3e6cadbb76a3ebe9af7ff1b858f129116fbbb878 (patch) | |
tree | 0d6b871b558cb89e0de6e7409156419740f36328 | |
parent | 6d00a9e0bd4cdb2be26577f53b75b3078cefd4c3 (diff) |
ndpireader: fix "Discarded bytes" statistics (#1877)
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |