Add another fix to the 1's complement checksum. A second carry does not
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 11 Aug 2007 18:57:34 +0000 (18:57 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 11 Aug 2007 18:57:34 +0000 (18:57 +0000)
commit37ed010a215863b711ad14c62e08aee16a1fbdd3
tree4df3810e8599a6060db4c82b028abeaf5aedf5fc
parent49fed6e25caf3905b037fb59d947bb1753a62d5e
Add another fix to the 1's complement checksum.  A second carry does not
occur when the individual packet csum's are set to 0xffff, which is normally
the case.  But if we ever use csum_data to accumulate partial fragment
checksums then a second carry can occur which must be handled.  Fix it now.
sys/netinet/ip_input.c