Date: Tue, 23 Jul 2002 13:42:10 -0700 From: "Crist J. Clark" <crist.clark@attbi.com> To: Peter Wemm <peter@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libstand in_cksum.c Message-ID: <20020723204210.GB56146@blossom.cjclark.org> In-Reply-To: <200207220928.g6M9Spnf058079@freefall.freebsd.org> References: <200207220928.g6M9Spnf058079@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 22, 2002 at 02:28:50AM -0700, Peter Wemm wrote:
> peter 2002/07/22 02:28:50 PDT
>
> Modified files: (Branch: RELENG_4)
> lib/libstand in_cksum.c
> Log:
> MFC: rev 1.4: Make in_cksum() work on little-endian machines.
>
> Revision Changes Path
> 1.1.1.1.6.1 +20 -5 src/lib/libstand/in_cksum.c
Err... The checksum algorithm should not be endian dependent, no?
Isn't that the whole point of the ones-complement addition?
0xabcd 0xcdab
0x1234 0x3412
------ ------
0xbe01 0x01be
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020723204210.GB56146>
