diff options
Diffstat (limited to 'sys/src/9/ip/ip.c')
| -rw-r--r-- | sys/src/9/ip/ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/ip/ip.c b/sys/src/9/ip/ip.c index 0a8863e77..ef8a7e19c 100644 --- a/sys/src/9/ip/ip.c +++ b/sys/src/9/ip/ip.c @@ -208,7 +208,7 @@ ipoput4(Fs *f, Block *bp, int gating, int ttl, int tos, Conv *c) eh->cksum[0] = 0; eh->cksum[1] = 0; hnputs(eh->cksum, ipcsum(&eh->vihl)); - ifc->m->bwrite(ifc, bp, V4, gate); + ifc->m->bwrite(ifc, concatblock(bp), V4, gate); runlock(ifc); poperror(); return 0; @@ -240,7 +240,7 @@ if((eh->frag[0] & (IP_DF>>8)) && !gating) print("%V: DF set\n", eh->dst); lid = incref(&ip->id4); offset = IP4HDR; - while(xp != nil && offset && offset >= BLEN(xp)) { + while(offset && offset >= BLEN(xp)) { offset -= BLEN(xp); xp = xp->next; } |
