From owner-cvs-all Tue Jul 23 13:42:22 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 8D67137B400; Tue, 23 Jul 2002 13:42:15 -0700 (PDT) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 115F143E31; Tue, 23 Jul 2002 13:42:15 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020723204210.KMOS26053.rwcrmhc53.attbi.com@blossom.cjclark.org>; Tue, 23 Jul 2002 20:42:10 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g6NKgAJK057328; Tue, 23 Jul 2002 13:42:10 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g6NKgAQ7057327; Tue, 23 Jul 2002 13:42:10 -0700 (PDT) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Tue, 23 Jul 2002 13:42:10 -0700 From: "Crist J. Clark" To: Peter Wemm 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> Reply-To: "Crist J. Clark" References: <200207220928.g6M9Spnf058079@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200207220928.g6M9Spnf058079@freefall.freebsd.org> User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ 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 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