From owner-freebsd-current@FreeBSD.ORG Fri Aug 20 19:36:14 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F30C016A4CF for ; Fri, 20 Aug 2004 19:36:13 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 31DB943D2D for ; Fri, 20 Aug 2004 19:36:13 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 20 Aug 2004 20:36:08 +0100 (BST) Date: Fri, 20 Aug 2004 20:36:08 +0100 From: David Malone To: "David W. Hankins" Message-ID: <20040820193608.GA94415@walton.maths.tcd.ie> References: <20040820190525.GA21626@isc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040820190525.GA21626@isc.org> User-Agent: Mutt/1.5.3i Sender: dwmalone@maths.tcd.ie cc: current@freebsd.org Subject: Re: on amd64 tcp4 cksums are bad (FYI) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 20 Aug 2004 19:36:14 -0000 On Fri, Aug 20, 2004 at 12:05:25PM -0700, David W. Hankins wrote: > This is as observed via tcpdump on [client], which is what is producing > the bad checksums. Obviously it doesn't cause a problem since no one > listens to TCP checksums, but it's interesting. Actually, most things pay attention to TCP checksums. What you are actually seeing is that the checksum hasn't been calculated at the time that tcpdump gets to see the packet. This is probably because your ethernet card supports TCP checksum offloading, and so the checksum isn't actually calculated until the packet hits the wire (which is slightly after bpf feeds the packet to tcpdump....) If you run tcpdump on the server, you should see that the checksum is OK (though the packets transmitted by the server may seem to have bad checksums for similar reasons). David.