Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 15:41:21 -0600
From:      Shaun Marko <shaun.marko@gte.net>
To:        Brooks Davis <brooks@one-eyed-alien.net>, CJTT <cjtt@employees.org>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: ti driver, vlan and tcpdump
Message-ID:  <01111515412101.00586@shaggy.doo.com>
In-Reply-To: <20011115132222.B17252@Odin.AC.HMC.Edu>
References:  <Pine.GSO.3.96.1011115123414.13489A-100000@willers.employees.org> <20011115132222.B17252@Odin.AC.HMC.Edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01111515412101.00586>