From owner-freebsd-net Thu Nov 15 13:36:32 2001 Delivered-To: freebsd-net@freebsd.org Received: from smtp003pub.verizon.net (smtp003pub.verizon.net [206.46.170.182]) by hub.freebsd.org (Postfix) with ESMTP id 870A837B417 for ; Thu, 15 Nov 2001 13:36:29 -0800 (PST) Received: from shaggy.doo.com (dfiatx96-144.dfiatx.dsl.gtei.net [4.3.96.144]) by smtp003pub.verizon.net with SMTP ; id fAFLYr323790 Thu, 15 Nov 2001 15:34:54 -0600 (CST) Content-Type: text/plain; charset="us-ascii" From: Shaun Marko Reply-To: shaun.marko@gte.net To: Brooks Davis , CJTT Subject: Re: ti driver, vlan and tcpdump Date: Thu, 15 Nov 2001 15:41:21 -0600 X-Mailer: KMail [version 1.2] Cc: freebsd-net@FreeBSD.ORG References: <20011115132222.B17252@Odin.AC.HMC.Edu> In-Reply-To: <20011115132222.B17252@Odin.AC.HMC.Edu> MIME-Version: 1.0 Message-Id: <01111515412101.00586@shaggy.doo.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Could you also get the desired result by using a kernel without VLAN support? The original poster said he didn't want to configure VLAN interfaces anyway. -Shaun On Thursday 15 November 2001 03:22, Brooks Davis wrote: > On Thu, Nov 15, 2001 at 12:53:35PM -0800, CJTT wrote: > > While sending some test traffic to a > > FreeBSD 4.4 (cvsupped yesterday), I noticed > > that tcpdump doesn't seem to see VLAN traffic > > received on the ti card as it does on the fxp card. > > (however, tcpdump on the sending ti card > > sees the traffic leave). > > [traffic dumps]. > > > Why do the two cards behave differently with regard to > > tcpdump (libpcap)? I need to be able to see the VLAN traffic > > without configuring VLANs (in a test lab). > > This is caused by the fact that ethernet adaptors provide bpf support > via the ether_input() function and on cards like those supported by ti(4) > which provide hardware vlan tag extraction, ether_input() is never called. > It would be relativly simple to modify vlan_input_tag() to take an ifp > argument and have it rebuild a packet to send to bpf. In current you > wouldn't even have to change the drivers because the wrapper macro for > locking already takes an if pointer. > > -- Brooks ---------------------------------------- Content-Type: application/pgp-signature; charset="us-ascii"; name="Attachment: 1" Content-Transfer-Encoding: 7bit Content-Description: ---------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message