From owner-freebsd-net Sun Feb 25 21:22: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 8442A37B401 for ; Sun, 25 Feb 2001 21:22:03 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id QAA04669; Mon, 26 Feb 2001 16:20:05 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01K0KM3W0OVK8ZKTO2@cim.alcatel.com.au>; Mon, 26 Feb 2001 16:20:04 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.1/8.11.1) id f1Q5K2W91359; Mon, 26 Feb 2001 16:20:02 +1100 (EST envelope-from jeremyp) Content-return: prohibited Date: Mon, 26 Feb 2001 16:20:01 +1100 From: Peter Jeremy Subject: Re: 802.1q vlans and STABLE In-reply-to: ; from pjlobo@euitt.upm.es on Fri, Feb 23, 2001 at 10:52:17AM +0100 To: "Pedro J. Lobo" Cc: freebsd-net@FreeBSD.ORG Message-id: <20010226162001.E84807@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010223152257.K36182@gsmx07.alcatel.com.au> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 2001-Feb-23 10:52:17 +0100, "Pedro J. Lobo" wrote: >On Fri, 23 Feb 2001, Peter Jeremy wrote: >> - VLAN support in driver modules for the above drivers > >Including fxp? My code only supports vlan in modules for the 558 and 559 >controllers, not for the old 557. I suspect not. I only have 559's to test on. >> - fix VLAN handling in arp(8) > >Can you ellaborate a bit more on this one? arp(8) needs to know that VLANs are an `ethernet-like' device so it can add and delete ARP entries. My code is based on kern/19436 and I've attached my changed to that PR. For Wes's benefit, this doesn't change the kernel's ARP handling at all. >> - support VLANs in tcpdump(8) [this may be in the generic tree by now] > >It's been for quite some time. I used it when doing my first version of >the patches on a 3.2-stable system. I added patches to allow matching on the VLAN id and made the BPF compiler generate code to look inside VLAN packets and allow matching on the packet contents. I sent these both to FreeBSD (bin/21880) and the tcpdump maintainers. This lets me do things like: aalp02# tcpdump -i fxp0 -c 5 vlan and host aald09-tu0 tcpdump: listening on fxp0 16:16:12.474266 802.1Q vlan#158 P0 aald11-tu0.1160 > aald09-tu0.pdap-np: P 429682654:429682683(29) ack 359725302 win 33580 (DF) 16:16:12.474708 802.1Q vlan#158 P0 aald09-tu0.pdap-np > aald11-tu0.1160: P 1:17(16) ack 29 win 33580 (DF) 16:16:12.525298 802.1Q vlan#156 P0 aald09-tu0.pdap-np > aald11-tu0.1160: P 1:17(16) ack 29 win 33580 (DF) 16:16:12.525755 802.1Q vlan#156 P0 aald11-tu0.1160 > aald09-tu0.pdap-np: P 29:249(220) ack 17 win 33580 (DF) 16:16:12.576825 802.1Q vlan#158 P0 aald11-tu0.1160 > aald09-tu0.pdap-np: P 29:249(220) ack 17 win 33580 (DF) aalp02# Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message