diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-01-10 11:46:57 +0100 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-01-18 10:21:24 +0100 |
commit | 0712d496fe63fd16f8e943a438c57f75d8cae880 (patch) | |
tree | 5102d4c3de8250cd16f52658de3f0dad55554c7c /example/reader_util.c | |
parent | 6c85f10cd5a29346522ad647a38066f0cc44e5a7 (diff) |
config: allow configuration of guessing algorithms
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 9f8a76c1c..0fe629ac6 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -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++; } |