Re: rewrite src/sys/i386/i386/in_cksum.c

From: Zhouyi Zhou <zhouzhouyi_at_FreeBSD.org>
Date: Mon, 9 Jul 2007 20:09:54 +0800
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" <Alexander_at_Leidinger.net>
To: "zhouyi zhou" <zhouzhouyi_at_FreeBSD.org>
Cc: <freebsd-hackers_at_FreeBSD.org>; <freebsd-current_at_FreeBSD.org>
Sent: Monday, July 09, 2007 5:56 PM
Subject: Re: rewrite src/sys/i386/i386/in_cksum.c


Quoting zhouyi zhou <zhouzhouyi_at_FreeBSD.org> (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 _at_ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild _at_ FreeBSD.org  : PGP ID = 72077137
Received on Mon Jul 09 2007 - 10:15:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC