Commit 6a3bee1d authored by David Bird's avatar David Bird Committed by GitHub
Browse files

Merge pull request #304 from PFELAVALESIEA/master

Fix chilli.c check if the flag MF is set or not
parents da0047fd f3fd4c55
......@@ -2687,7 +2687,7 @@ int cb_tun_ind(struct tun_t *tun, struct pkt_buffer *pb, int idx) {
if (iphdr_offset((struct pkt_iphdr_t*)ipph) == 0) {
udph = (struct pkt_udphdr_t *)(((void *)ipph) + hlen);
if (udph && (ntohs(udph->len) > ip_len)) {
if (udph && !iphdr_more_frag((struct pkt_iphdr_t*)ipph) && (ntohs(udph->len) > ip_len)) {
if (_options.debug)
syslog(LOG_DEBUG, "%s(%d): invalid UDP packet %d / %d / %zu", __FUNCTION__, __LINE__,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment