From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15350 invoked by alias); 6 Nov 2007 23:47:49 -0000 Received: (qmail 15335 invoked by uid 22791); 6 Nov 2007 23:47:48 -0000 X-Spam-Check-By: sourceware.org Received: from pop132.ocn.ne.jp (HELO pop132.ocn.ne.jp) (60.37.31.215) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Nov 2007 23:47:44 +0000 Received: from ariga (p1143-ipbf2202marunouchi.tokyo.ocn.ne.jp [122.17.131.143]) by pop132.ocn.ne.jp (OCN) with SMTP id lA6Nlehd017673; Wed, 7 Nov 2007 08:47:40 +0900 (JST) Message-ID: <000301c820cf$6a8a0b50$1c0110ac@ariga> From: "ariga masahiro" To: "Gary Thomas" , "Alok Singh" , "Andrew Lunn" Cc: References: <47173F99.80405@mlbassoc.com> <000601c8120c$667aa3c0$1c0110ac@ariga> <47187EEB.5020109@mlbassoc.com> <000501c8154d$ecc04db0$1c0110ac@ariga> <000301c816ab$6acbf7f0$1c0110ac@ariga> <000a01c81a9e$6b8c2240$1c0110ac@ariga> <001a01c82044$937a9b50$1c0110ac@ariga> <001501c8204f$486d3180$1c0110ac@ariga> <20071106083527.GB16191@lunn.ch> Date: Tue, 06 Nov 2007 23:47:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook Express 6.00.2900.2869 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] Can't Connect,TCP CHECKSUM INCORRECT X-SW-Source: 2007-11/txt/msg00037.txt.bz2 Hello, I am very sorry. I am not familiar using command diff. So I send again. As I said I changed next two functions in \packages\devs\eth\smsc\lan91cxx\current\src\if_lan91cxx.c cyg_uint8 get_data_byte(struct eth_drv_sc *sc) { //20070919 int sf; cyg_uint8 c; struct lan91cxx_priv_data *cpd = (struct lan91cxx_priv_data *)sc->driver_private; if( cpd->data_pos == sizeof(rxd_t) ) { cpd->data_buf = get_data(sc); cpd->data_pos = 0; //20070919 sf = 1; } //20070919 begin else{ sf = 0; } //20070919 end //20070919 begin //ORG c = (cpd->data_buf>>(cpd->data_pos*8))&0xFF; c = (cpd->data_buf>>(sf*8))&0xFF; cpd->data_pos++; return c; } cyg_uint16 get_data_short(struct eth_drv_sc *sc) { cyg_uint16 val; val = get_data_byte(sc); //20071023 // val |= get_data_byte(sc)<<8; val = val<<8 | get_data_byte(sc); return CYG_LE16_TO_CPU(val); } Masahiro Ariga > On Tue, Nov 06, 2007 at 05:30:26PM +0900, ariga masahiro wrote: >> >>>> I only changed coding in retrieving data in BigEndian as I reported to >>>> you. >>>> I think others are resolved by Macros of bigendian. >> >> Can you let us know what code you changed to retrieve data in >> Big-endian? >> >> Only next two functions. > > This is nearly impossible to read. > > Please send a unified diff which you generate using the command diff. > > Andrew > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss