Drop fragmented IP packets

Closes #437
This commit is contained in:
M66B 2016-07-03 17:37:47 +02:00
parent 0d0d49ad28
commit a4106e3e98
1 changed files with 3 additions and 3 deletions

View File

@ -146,9 +146,9 @@ void handle_ip(const struct arguments *args,
daddr = &ip4hdr->daddr; daddr = &ip4hdr->daddr;
if (ip4hdr->frag_off & IP_MF) { if (ip4hdr->frag_off & IP_MF) {
log_android(ANDROID_LOG_ERROR, "IP fragment offset %u", ip4hdr->frag_off & IP_OFFMASK); log_android(ANDROID_LOG_ERROR, "IP fragment offset %u",
flags[flen++] = '+'; (ip4hdr->frag_off & IP_OFFMASK) * 8);
report_error(args, 2, "TCP fragmentation"); return;
} }
uint8_t ipoptlen = (uint8_t) ((ip4hdr->ihl - 5) * 4); uint8_t ipoptlen = (uint8_t) ((ip4hdr->ihl - 5) * 4);