config: allow configuration of guessing algorithms

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 6c85f10cd5
commit 0712d496fe
18 changed files with 140 additions and 23 deletions
+2 -2
View File
@@ -73,7 +73,7 @@
#include "reader_util.h"
#include "ndpi_classify.h"
extern u_int8_t enable_protocol_guess, enable_flow_stats, enable_payload_analyzer;
extern u_int8_t enable_flow_stats, enable_payload_analyzer;
extern u_int8_t verbose, human_readeable_string_len;
extern u_int8_t max_num_udp_dissected_pkts /* 24 */, max_num_tcp_dissected_pkts /* 80 */;
static u_int32_t flow_id = 0;
@@ -1729,7 +1729,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
u_int8_t proto_guessed;
flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow,
enable_protocol_guess, &proto_guessed);
&proto_guessed);
if(proto_guessed) workflow->stats.guessed_flow_protocols++;
}