From owner-freebsd-current@FreeBSD.ORG Mon Jul 9 09:58:54 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 EA8C216A469; Mon, 9 Jul 2007 09:58:54 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 95F6513C45B; Mon, 9 Jul 2007 09:58:54 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A579F8.dip.t-dialin.net [84.165.121.248]) by redbull.bpaserver.net (Postfix) with ESMTP id DD1C62E25F; Mon, 9 Jul 2007 11:58:48 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8FE6F5B5A49; Mon, 9 Jul 2007 11:56:37 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l699ubWK069540; Mon, 9 Jul 2007 11:56:37 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 09 Jul 2007 11:56:37 +0200 Message-ID: <20070709115637.sapzl5uq3osw4gc4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 09 Jul 2007 11:56:37 +0200 From: Alexander Leidinger To: zhouyi zhou References: <20070709105547.71827eb8.zhouzhouyi@FreeBSD.org> In-Reply-To: <20070709105547.71827eb8.zhouzhouyi@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.3, required 8, BAYES_00 -15.00, DKIM_POLICY_SIGNSOME 0.00, J_CHICKENPOX_93 0.60, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No 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 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 09:58:55 -0000 Quoting zhouyi zhou (from Mon, 9 Jul 2007 =20 10:55:47 +0800): > Hey, > Since FreeBSD update gcc from 3.4.x to 4.2.0, the FreeBSD gdb =20 > remote debugger in i386 platform > will find the TCP/UPD checksum will not be computed right, when =20 > calling macro in_cksum > which calls in_cksum_skip in src/sys/i386/i386/in_cksum.c in case of =20 > getting rid of -O flag > supplied to gcc when compiling(The optimize will interfere with =20 > comfortable gdb debugging). > If someone is interested in it, he can lend me a hand to rewrite =20 > all of the similiar cases. A rewrite (port from DFly) of the IP checksum code exists since a long =20 time. ATM I don't remember who ported it (sorry!). I know that Andre =20 wanted to review the code as part of his network-fundraising work, but =20 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 =20 and test if it solves your problem. Bye, Alexander. --=20 Ignorance should be painful. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137