diff options
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 174312cb8..da7a87bdb 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -645,6 +645,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, return(nproto); } + /* The lines below are no longer necessary as this hsould be called automatically by ndpi_detection_process_packet */ +#if 0 /* Protocol already detected */ if(flow->detection_completed) { if(flow->check_extra_packets && ndpi_flow != NULL && ndpi_flow->check_extra_packets) { @@ -669,7 +671,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, return(flow->detected_protocol); } - +#endif + flow->detected_protocol = ndpi_detection_process_packet(workflow->ndpi_struct, ndpi_flow, iph ? (uint8_t *)iph : (uint8_t *)iph6, |