diff --git a/app/src/main/jni/netguard/ip.c b/app/src/main/jni/netguard/ip.c index 43dab59c..acf93c28 100644 --- a/app/src/main/jni/netguard/ip.c +++ b/app/src/main/jni/netguard/ip.c @@ -146,9 +146,9 @@ void handle_ip(const struct arguments *args, daddr = &ip4hdr->daddr; if (ip4hdr->frag_off & IP_MF) { - log_android(ANDROID_LOG_ERROR, "IP fragment offset %u", ip4hdr->frag_off & IP_OFFMASK); - flags[flen++] = '+'; - report_error(args, 2, "TCP fragmentation"); + log_android(ANDROID_LOG_ERROR, "IP fragment offset %u", + (ip4hdr->frag_off & IP_OFFMASK) * 8); + return; } uint8_t ipoptlen = (uint8_t) ((ip4hdr->ihl - 5) * 4);