diff options
author | Philippe Antoine <contact@catenacyber.fr> | 2020-02-26 17:05:08 +0100 |
---|---|---|
committer | Philippe Antoine <contact@catenacyber.fr> | 2020-02-26 17:05:08 +0100 |
commit | 5fc9d41eb0b337958fb7c7446ca690f8ba361285 (patch) | |
tree | 14f4ab896db84314644922a0b1a84f756c0e32f6 /example/reader_util.c | |
parent | 933351840dbed3646aeb4f75a359649434b001eb (diff) |
Run ndpi_detection_process_packet only with payload
Real problem is decapsulation of all ipv6 headers
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index f56320976..432dadbef 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1359,7 +1359,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, return(nproto); } - if(!flow->detection_completed) { + if(!flow->detection_completed && payload_len > 0) { u_int enough_packets = (((proto == IPPROTO_UDP) && ((flow->src2dst_packets + flow->dst2src_packets) > max_num_udp_dissected_pkts)) || ((proto == IPPROTO_TCP) && ((flow->src2dst_packets + flow->dst2src_packets) > max_num_tcp_dissected_pkts))) ? 1 : 0; |