From owner-freebsd-current@FreeBSD.ORG Tue Oct 16 18:54:25 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EDBA16A417 for ; Tue, 16 Oct 2007 18:54:25 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2E913C4B7; Tue, 16 Oct 2007 18:54:24 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <471508E0.4010301@FreeBSD.org> Date: Tue, 16 Oct 2007 20:54:24 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Jelte Jansen References: <471490DF.7010609@NLnetLabs.nl> In-Reply-To: <471490DF.7010609@NLnetLabs.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: re(4) checksum offload problem 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: Tue, 16 Oct 2007 18:54:25 -0000 Jelte Jansen wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi, > > i'm seeing bad IP/UDP checksums on packets on a realtek gigabit network > card. Turning offloading off (ifconfig -txcsum) seems to make the > problem disappear. > > Attached are pcap files showing the bad checksums; the IP header is set > to 0x0000 and then TCP/UDP headers are wrong too. The machine in > question is on .99. These were taken on the host itself but i also see > them on the other machine. Are you sure? The host itself does not see the correct checksums on the packets it sends, because they are not calculated until the packet is in the driver. This is even documented in the tcpdump manpage :) Kris