From owner-cvs-all Tue Jul 23 14: 5:50 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93B3737B401; Tue, 23 Jul 2002 14:05:43 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A3F043E42; Tue, 23 Jul 2002 14:05:43 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id AF5792A7D6; Tue, 23 Jul 2002 14:05:42 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 779344C26C; Tue, 23 Jul 2002 14:05:42 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 4E2303808; Tue, 23 Jul 2002 14:05:42 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Crist J. Clark" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libstand in_cksum.c In-Reply-To: <20020723204210.GB56146@blossom.cjclark.org> Date: Tue, 23 Jul 2002 14:05:42 -0700 From: Peter Wemm Message-Id: <20020723210542.4E2303808@overcee.wemm.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > 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 Umm, have you read the code? Carefully? Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message