From owner-freebsd-net Thu Nov 15 13:22:32 2001 Delivered-To: freebsd-net@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id D2B7637B418 for ; Thu, 15 Nov 2001 13:22:24 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id fAFLMM721731; Thu, 15 Nov 2001 13:22:22 -0800 Date: Thu, 15 Nov 2001 13:22:22 -0800 From: Brooks Davis To: CJTT Cc: freebsd-net@FreeBSD.ORG Subject: Re: ti driver, vlan and tcpdump Message-ID: <20011115132222.B17252@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from cjtt@employees.org on Thu, Nov 15, 2001 at 12:53:35PM -0800 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 --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