From owner-freebsd-current@FreeBSD.ORG Mon Jul 9 12:15:02 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EDB716A468 for ; Mon, 9 Jul 2007 12:15:02 +0000 (UTC) (envelope-from zhouzhouyi@FreeBSD.org) Received: from ercist.iscas.ac.cn (ercist.iscas.ac.cn [124.16.138.3]) by mx1.freebsd.org (Postfix) with SMTP id 914C713C4BA for ; Mon, 9 Jul 2007 12:15:01 +0000 (UTC) (envelope-from zhouzhouyi@FreeBSD.org) Received: (qmail 78319 invoked by uid 98); 9 Jul 2007 12:12:31 -0000 Received: from 222.191.237.170 by ercist.iscas.ac.cn (envelope-from , uid 89) with qmail-scanner-1.25 (spamassassin: 3.1.0. Clear:RC:1(222.191.237.170):SA:0(0.0/10.0):. Processed in 3.962652 secs); 09 Jul 2007 12:12:31 -0000 X-Spam-Status: No, hits=0.0 required=10.0 X-Qmail-Scanner-Mail-From: zhouzhouyi@FreeBSD.org via ercist.iscas.ac.cn X-Qmail-Scanner: 1.25 (Clear:RC:1(222.191.237.170):SA:0(0.0/10.0):. Processed in 3.962652 secs) Received: from unknown (HELO iosdf17a8152bc) (zhouzhouyi@ercist.iscas.ac.cn@222.191.237.170) by 0 with SMTP; 9 Jul 2007 12:12:27 -0000 Message-ID: <00d901c7c222$109cb310$f100a8c0@iosdf17a8152bc> From: "Zhouyi Zhou" To: "Alexander Leidinger" References: <20070709105547.71827eb8.zhouzhouyi@FreeBSD.org> <20070709115637.sapzl5uq3osw4gc4@webmail.leidinger.net> Date: Mon, 9 Jul 2007 20:09:54 +0800 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-RFC2646: Format=Flowed; Response Cc: freebsd-hackers@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: rewrite src/sys/i386/i386/in_cksum.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Zhouyi Zhou List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 12:15:02 -0000 The patch supplied by Gordon http://generic.0xfce3.net/20060524-ipchecksum.patch no longer exists, but I take a look at DragonFlyBSD, I feel that modification follows my idea is modestly to FreeBSD implementation. Zhouyi ----- Original Message ----- From: "Alexander Leidinger" To: "zhouyi zhou" Cc: ; Sent: Monday, July 09, 2007 5:56 PM Subject: Re: rewrite src/sys/i386/i386/in_cksum.c Quoting zhouyi zhou (from Mon, 9 Jul 2007 10:55:47 +0800): > Hey, > Since FreeBSD update gcc from 3.4.x to 4.2.0, the FreeBSD gdb remote > debugger in i386 platform > will find the TCP/UPD checksum will not be computed right, when calling > macro in_cksum > which calls in_cksum_skip in src/sys/i386/i386/in_cksum.c in case of > getting rid of -O flag > supplied to gcc when compiling(The optimize will interfere with > comfortable gdb debugging). > If someone is interested in it, he can lend me a hand to rewrite all > of the similiar cases. A rewrite (port from DFly) of the IP checksum code exists since a long time. ATM I don't remember who ported it (sorry!). I know that Andre wanted to review the code as part of his network-fundraising work, but I don't remember the outcome (or if there's an outcome at all). Search the archives of net/current/arch, maybe you can find it there and test if it solves your problem. Bye, Alexander. -- Ignorance should be painful. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137