aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2016-05-31 12:20:25 +0200
committerLuca Deri <deri@ntop.org>2016-05-31 12:20:25 +0200
commit72efa329db996a45f394457238b218252bae3e00 (patch)
tree16f423dc903291adac3071417ba9cbec64228e68 /example/ndpiReader.c
parenta79b338208566c48d74a453710fef02611f13b8f (diff)
Enhanced fragments support in ndpiReader
Improved RX protocol dissection and removed port guess as it caused false positives.
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index f558d7b0d..1939d70cd 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -769,7 +769,9 @@ static void printResults(u_int64_t tot_usec) {
memset(&cumulative_stats, 0, sizeof(cumulative_stats));
for(thread_id = 0; thread_id < num_threads; thread_id++) {
- if(ndpi_thread_info[thread_id].workflow->stats.total_wire_bytes == 0) continue;
+ if((ndpi_thread_info[thread_id].workflow->stats.total_wire_bytes == 0)
+ && (ndpi_thread_info[thread_id].workflow->stats.raw_packet_count == 0))
+ continue;
for(i=0; i<NUM_ROOTS; i++)
ndpi_twalk(ndpi_thread_info[thread_id].workflow->ndpi_flows_root[i], node_proto_guess_walker, &thread_id);