diff options
author | Luca Deri <deri@ntop.org> | 2018-11-21 00:32:32 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2018-11-21 00:32:32 +0100 |
commit | 669fdf6b5f3657c638ffa8df6ff1baebf5b311b1 (patch) | |
tree | af6540946a53550ea3d198c7e232ea5ac8ae072e /example/ndpi_util.c | |
parent | 21504c849233d69b896fdff364b3933e8ec997d3 (diff) |
Improved skype, teredo, netbios heuristics
Changed ndpi_detection_giveup() API: guess is now part of the call
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 1a0d45914..58dc896b1 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -74,6 +74,8 @@ #include "ndpi_main.h" #include "ndpi_util.h" +extern u_int8_t enable_protocol_guess; + /* ***************************************************** */ void ndpi_free_flow_info_half(struct ndpi_flow_info *flow) { @@ -677,8 +679,9 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, flow->check_extra_packets = 1; if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) - flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, - flow->ndpi_flow); + flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow, + enable_protocol_guess); + process_ndpi_collected_info(workflow, flow); } |