From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9047 invoked by alias); 30 Oct 2007 08:51:26 -0000 Received: (qmail 9037 invoked by uid 22791); 30 Oct 2007 08:51:25 -0000 X-Spam-Check-By: sourceware.org Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 08:51:21 +0000 Received: from [10.10.64.154] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Tue, 30 Oct 2007 01:51:10 -0700 X-Server-Uuid: A6C4E0AE-A7F0-449F-BAE7-7FA0D737AC76 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id EC9782AF; Tue, 30 Oct 2007 01:51:09 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id D8FDF2AE for ; Tue, 30 Oct 2007 01:51:09 -0700 ( PDT) Received: from mail-sj1-12.sj.broadcom.com (mail-sj1-12.sj.broadcom.com [10.16.128.215]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FWL27962; Tue, 30 Oct 2007 01:51:09 -0700 (PDT) Received: from NT-SJCA-0752.brcm.ad.broadcom.com (nt-sjca-0752 [10.16.192.222]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id 782AF20501 for ; Tue, 30 Oct 2007 01:51:09 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 30 Oct 2007 08:51:00 -0000 Message-ID: In-Reply-To: References: <000501c7f691$4847e2f0$1c0110ac@ariga> <20070914082224.GA16840@lunn.ch> <000501c80eef$edf10f30$1c0110ac@ariga> <47134CDD.1080604@mlbassoc.com> <004301c80fa1$3dcb15d0$1c0110ac@ariga> <47149BA6.1080500@mlbassoc.com> <001301c81091$1d11b060$1c0110ac@ariga> <4715F2D0.7080704@mlbassoc.com> <000c01c81151$9add59c0$1c0110ac@ariga> <47173F99.80405@mlbassoc.com> <000601c8120c$667aa3c0$1c0110ac@ariga> <47187EEB.5020109@mlbassoc.com> <000501c8154d$ecc04db0$1c0110ac@ariga> <000301c816ab$6acbf7f0$1c0110ac@ariga> <000a01c81a9e$6b8c2240$1c0110ac@ariga> From: "Alok Singh" To: ecos-discuss@sources.redhat.com X-WSS-ID: 6B382FF42FS11313631-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Re: Can't Connect,TCP CHECKSUM INCORRECT X-SW-Source: 2007-10/txt/msg00151.txt.bz2 Please also make sure that you have "CYGPKG_HAL_MIPS_MSBFIRST" set for your big-endian target. And it will be better to remove all the code changes you made while debugging the ARP issue earlier.=20=20 -Alok -----Original Message----- From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Grant Edwards Sent: Tuesday, October 30, 2007 9:47 AM To: ecos-discuss@sources.redhat.com Subject: [ECOS] Re: Can't Connect,TCP CHECKSUM INCORRECT On 2007-10-30, ariga masahiro wrote: > I traced TCP checksum routine,and I am not sure they are correct. Oh please. The BSD IP checksum routines have been used in hundreds of different OSes and network stacks for _decades_. They're probably some of the most scrutinized routines on the planet. They've been tested, examined, reviewed, and tuned by hundreds of different people. They are correct. They are the de-fact _definition_ of what an IP checksum is. They are the gold standard, the platinum sphere, the be-all and end-all of IP checksum routines. It took me _weeks_ of blood, sweat, and tears (not to mention help from some other people far smarter than I) to come up with an ARM assembly language routine that could match the C-language BSD IP checksum routines in execution time. The BSD routines work for everbody on the flippin' planet except you, and you think your code is OK, and the BSD routines are broken? [Damn, to be young again...] There's something wrong with your code.=20=20 Really. Trust me. One thing you learn after a decade or two is that it's not the compiler, it's not the library code, it's not the processor, it's not the linker, it's _your_ code that's broken.=20=20 Except for that one time out of a thousand when it isn't. But this isn't one of those times. --=20 Grant Edwards grante Yow! BARBARA STANWYCK at makes me nervous!! visi.com=20=20=20=20=20=20=20=20=20=20=20=20 --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss