diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-12-20 12:11:34 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-12-20 12:11:34 +0000 |
commit | 20128fc0663c7a44882bc4cf1b65dc457184cabe (patch) | |
tree | 5dec7b8c6b2ba55e9a22fc7e116a955fa014d789 /sys/i386 | |
parent | e424a6e102c8c3ffca8e8d2a8bf7ce3accb72709 (diff) | |
download | FreeBSD-src-20128fc0663c7a44882bc4cf1b65dc457184cabe.zip FreeBSD-src-20128fc0663c7a44882bc4cf1b65dc457184cabe.tar.gz |
Complement the sum as required in in_cksum_finalize().
PR: 15472
Submitted by: wollman
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/in_cksum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/in_cksum.c b/sys/i386/i386/in_cksum.c index 481a390..ada4f71 100644 --- a/sys/i386/i386/in_cksum.c +++ b/sys/i386/i386/in_cksum.c @@ -411,5 +411,5 @@ in_cksum_finalize(psum) { in_psum_t sum = psum; REDUCE; - return (sum & 0xffff); + return (~sum & 0xffff); } |