net: Set DONT_FRAGMENT for unfragmented packets
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Feb 2017 17:36:01 +0000 (12:36 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Feb 2017 17:36:01 +0000 (12:36 -0500)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/ip.c

index 9806c25..b5a66cd 100644 (file)
@@ -328,7 +328,7 @@ ipoput4(struct Fs *f,
                        hnputs(eh->id, NEXT_ID(ip->id4));
                hnputs(eh->length, len);
                if (!gating) {
-                       eh->frag[0] = 0;
+                       eh->frag[0] = 0x40;
                        eh->frag[1] = 0;
                }
                eh->cksum[0] = 0;