Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2001 13:22:22 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        CJTT <cjtt@employees.org>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: ti driver, vlan and tcpdump
Message-ID:  <20011115132222.B17252@Odin.AC.HMC.Edu>
In-Reply-To: <Pine.GSO.3.96.1011115123414.13489A-100000@willers.employees.org>; from cjtt@employees.org on Thu, Nov 15, 2001 at 12:53:35PM -0800
References:  <Pine.GSO.3.96.1011115123414.13489A-100000@willers.employees.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--IiVenqGWf+H9Y6IX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 15, 2001 at 12:53:35PM -0800, CJTT wrote:
>=20
> 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).
>=20
[traffic dumps].
>=20
> Why do the two cards behave differently with regard to=20
> tcpdump (libpcap)?  I need to be able to see the VLAN traffic
> without configuring VLANs (in a test lab).=20

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

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--IiVenqGWf+H9Y6IX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE79DIOXY6L6fI4GtQRAoB7AKDlkS+OFYPiW6+2lLdghsQEYRzeNgCfSgbd
m860WWqJDVbM/S3sVIwqlpk=
=XQQC
-----END PGP SIGNATURE-----

--IiVenqGWf+H9Y6IX--

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?20011115132222.B17252>