From 2effa57d8af2c2a459bcc6cb9f077aa247ea4f20 Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Sat, 6 Jun 2020 16:06:46 +0200 Subject: ndpiReader: fix ports statistics They should take idle/expired flows into account, too --- example/ndpiReader.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example/ndpiReader.c') 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; -- cgit v1.2.3