aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorPhilippe Antoine <contact@catenacyber.fr>2020-03-19 16:44:53 +0100
committerPhilippe Antoine <contact@catenacyber.fr>2020-03-19 16:44:53 +0100
commite9195589d29d86da1849ad0d195900e6567354cf (patch)
treeed7fc0ee084e7df5a948046c53b1641735de1e49 /example/reader_util.c
parentb2cbe76e716e628438a94d2e112acddb67ec89f2 (diff)
Checks enough data for UDP header
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index a050edb39..dd1a15d2f 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1709,10 +1709,8 @@ ether_type_check:
}
if(workflow->prefs.decode_tunnels && (proto == IPPROTO_UDP)) {
-#if LUCA
if (header->caplen < ip_offset + ip_len + sizeof(struct ndpi_udphdr))
return(nproto); /* Too short for UDP header*/
-#endif
struct ndpi_udphdr *udp = (struct ndpi_udphdr *)&packet[ip_offset+ip_len];
u_int16_t sport = ntohs(udp->source), dport = ntohs(udp->dest);