diff options
author | Luca Deri <deri@ntop.org> | 2019-01-17 00:40:28 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-01-17 00:40:28 +0100 |
commit | efef99cbadc8ddd6f6743e04d184fe240d6eb334 (patch) | |
tree | 2f2f02e0a26128f1db2fc6ca12b497da1202b720 /example | |
parent | c856e0a56384ae9d145282d0eb6f8b97f54913fb (diff) |
Removed this party LRU and replaced with home grown
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 6c3dfeee8..8996ea1a5 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -761,6 +761,9 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa if((verbose != 1) && (verbose != 2)) return; + if(5222 == ntohs(flow->dst_port)) + printf("************\n"); + if(!json_flag) { fprintf(out, "\t%u", id); @@ -913,7 +916,7 @@ static void node_proto_guess_walker(const void *node, ndpi_VISIT which, int dept struct ndpi_flow_info *flow = *(struct ndpi_flow_info **) node; u_int16_t thread_id = *((u_int16_t *) user_data); - if((which == ndpi_preorder) || (which == ndpi_leaf)) { /* Avoid walking the same node multiple times */ + if((which == ndpi_preorder) || (which == ndpi_leaf)) { /* Avoid walking the same node multiple times */ if((!flow->detection_completed) && flow->ndpi_flow) flow->detected_protocol = ndpi_detection_giveup(ndpi_thread_info[0].workflow->ndpi_struct, flow->ndpi_flow, enable_protocol_guess); |