From owner-freebsd-current@FreeBSD.ORG Sun Dec 24 21:47:20 2006 Return-Path: X-Original-To: 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 B436416A403 for ; Sun, 24 Dec 2006 21:47:20 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 4CBF513C46F for ; Sun, 24 Dec 2006 21:47:19 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so3962282nfc for ; Sun, 24 Dec 2006 13:47:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=X2eABm+E3M1XoJEaKCNmm06zqRTkrz2Vj39GsfoBLcgGVvbWS1GrwJ4BFvhX7Y9S64EgEDDFOtV6NqLT50JUBKaRhDId8auJf9qDFotgAy4JKGbkrLdEHzJGSzw40Ice712C7Gjuf2j8IhUFkyoRFs0TTU25gznbZCLbaKE1OWg= Received: by 10.78.203.13 with SMTP id a13mr36037hug.1166995355339; Sun, 24 Dec 2006 13:22:35 -0800 (PST) Received: by 10.78.167.16 with HTTP; Sun, 24 Dec 2006 13:22:35 -0800 (PST) Message-ID: Date: Mon, 25 Dec 2006 00:22:35 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Ruslan Ermilov" In-Reply-To: <20061222080202.GB77429@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061217205249.GA73132@xor.obsecurity.org> <20061222080202.GB77429@rambler-co.ru> X-Google-Sender-Auth: 867374a0f6c35971 Cc: David Xu , current@freebsd.org, Kris Kennaway Subject: Re: vge(4) bad checksum 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: Sun, 24 Dec 2006 21:47:20 -0000 On 12/22/06, Ruslan Ermilov wrote: > Hi, > > On Sun, Dec 17, 2006 at 03:52:49PM -0500, Kris Kennaway wrote: > > On Sun, Dec 17, 2006 at 11:46:24PM +0300, Andrew Pantyukhin wrote: > > > I'm not sure what it's all about, but with today's > > > current whatever goes out my vge interface (icmp/ > > > tcp/udp) has bad checksum: > > > > This is a FAQ; it's probably using hardware checksum offloading. > > > > Since the packet passed down to the NIC does not yet have the checksum > > computed, it looks to tcpdump like the checksum is incorrect. However > > if you look at the packet actually transmitted by the NIC > > (e.g. tcpdump on another host), you'll see that it has the correct > > checksum. > > > Kris, you probably missed a commit by csjp@ where it was fixed. > > : revision 1.220 > : date: 2006/11/18 23:17:22; author: csjp; state: Exp; lines: +40 -0 > : Currently, drivers that support hardware offload of VLAN tag > : processing are forced to toggle this functionality when the card > : is put in and out of promiscuous mode. The main reason for this > : is because the hardware strips the VLAN tag, making it impossible > : for the tag information to show up in network diagnostic tools like > : tcpdump(1). > : [...] > > Andrey, have you been able to narrow your problem down to > either this commit, my vge(4) commit (though you tested it > as well before it was committed), or to FAST_IPSEC? I tried to communicate with another fast_ipsec-enabled box (6-stable/rl0) and everything was okay, so I guess vge0 works well with fast_ipsec. I'll have to investi- gate re0 quirks. Thanks!