Enhanced fragments support in ndpiReader

Improved RX protocol dissection and removed port guess as it caused false positives.
This commit is contained in:
Luca Deri
2016-05-31 12:20:25 +02:00
parent a79b338208
commit 72efa329db
4 changed files with 11 additions and 7 deletions
+3 -1
View File
@@ -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);