diff options
author | Luca Deri <deri@ntop.org> | 2019-05-20 15:32:50 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-05-20 15:32:50 +0200 |
commit | f97be61e8b46663254425f99a944c36392227f0b (patch) | |
tree | 8639f7816f1a25f2a07685adbc8ed610b2be3ae9 /example/ndpi_util.c | |
parent | 96043866989d0fe355b53a8a50fdd6f4a303e3cc (diff) |
Fixed JA3 decoding
Made ndpi_process_extra_packet() optional
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, |