]> git.hungrycats.org Git - linux/commit
[IPV4/IPV6]: Fixup checksums properly when fragmenting.
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Sep 2004 15:07:46 +0000 (08:07 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 1 Sep 2004 15:07:46 +0000 (08:07 -0700)
commit5b82ac35c84a3528c0e781373f284bd8123a36b5
tree601ffc0a76be09324e5dc81780e2a8e4678f21f1
parent58b31cc93a32ab8f590d0fdb3f11db80de3b1767
[IPV4/IPV6]: Fixup checksums properly when fragmenting.

If we end up with a fraggap, when we copy the data
over to the next frag being built we must compute
a checksum for the bit we copy over for the new
fragment and subtract that checksum from the place
we are copying it from.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c
net/ipv6/ip6_output.c