Fixed invalid guess stats

This commit is contained in:
Luca Deri
2021-03-30 17:49:48 +02:00
parent ffbce931b9
commit fcbc16da00
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1542,6 +1542,8 @@ static void node_proto_guess_walker(const void *node, ndpi_VISIT which, int dept
flow->detected_protocol = ndpi_detection_giveup(ndpi_thread_info[0].workflow->ndpi_struct,
flow->ndpi_flow, enable_protocol_guess, &proto_guessed);
if(enable_protocol_guess) ndpi_thread_info[thread_id].workflow->stats.guessed_flow_protocols++;
}
process_ndpi_collected_info(ndpi_thread_info[thread_id].workflow, flow, csv_fp);
+1
View File
@@ -1531,6 +1531,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow,
enable_protocol_guess, &proto_guessed);
if(enable_protocol_guess) workflow->stats.guessed_flow_protocols++;
}
process_ndpi_collected_info(workflow, flow, csv_fp);