Don't try to reassemble IP_DF marked packets
[akaros.git] / kern / src / net / ip.c
index ab4077b..c8f644a 100644 (file)
@@ -526,7 +526,7 @@ void ipiput4(struct Fs *f, struct Ipifc *ifc, struct block *bp)
        }
 
        frag = nhgets(h->frag);
-       if (frag) {
+       if (frag && frag != IP_DF) {
                h->tos = 0;
                if (frag & IP_MF)
                        h->tos = 1;