diff options
author | Luca Deri <deri@ntop.org> | 2019-10-09 22:25:40 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-09 22:25:40 +0200 |
commit | cbe20d3740c19dd59150c9764a549857902d16b8 (patch) | |
tree | 37f1e94b41ce5c64ef919e552c70295541ef3483 /example/reader_util.c | |
parent | 21bc84e837d1410c1cf8ab8817391a73c575aa4d (diff) |
Fixes for API changes
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 050ccc556..8848f6f05 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1238,10 +1238,13 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, if(ndpi_flow && ndpi_flow->check_extra_packets) flow->check_extra_packets = 1; - if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) + if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) { + u_int8_t proto_guessed; + flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow, - enable_protocol_guess); - + enable_protocol_guess, &proto_guessed); + } + process_ndpi_collected_info(workflow, flow); } } |