aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2020-06-06 16:06:46 +0200
committerNardi Ivan <nardi.ivan@gmail.com>2020-06-28 12:05:12 +0200
commit2effa57d8af2c2a459bcc6cb9f077aa247ea4f20 (patch)
treefd517daacbcdfa666aa770a0e48acc02da0abfba /example/ndpiReader.c
parentb68b45f3bbc0754427f04e393c66a9f3e69188ff (diff)
ndpiReader: fix ports statistics
They should take idle/expired flows into account, too
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 57f8048df..05dcf9524 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1823,6 +1823,8 @@ static void node_idle_scan_walker(const void *node, ndpi_VISIT which, int depth,
/* update stats */
node_proto_guess_walker(node, which, depth, user_data);
+ if(verbose == 3)
+ port_stats_walker(node, which, depth, user_data);
if((flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) && !undetected_flows_deleted)
undetected_flows_deleted = 1;