From owner-freebsd-net@FreeBSD.ORG Sat Jan 24 03:42:56 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CE7F16A4CE for ; Sat, 24 Jan 2004 03:42:56 -0800 (PST) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 743F343D1D for ; Sat, 24 Jan 2004 03:42:54 -0800 (PST) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (kr2mbdxi@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.12.10/8.12.10) with ESMTP id i0OBgpo24528575; Sat, 24 Jan 2004 14:42:51 +0300 (MSK) Date: Sat, 24 Jan 2004 14:42:51 +0300 (MSK) From: Maxim Konovalov To: Adrian Penisoara In-Reply-To: <20040124132053.S1830@sunny.home.ady.ro> Message-ID: <20040124144230.S29370@news1.macomnet.ru> References: <20040124132053.S1830@sunny.home.ady.ro> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: vlan(4)/bridge(4) interaction ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 11:42:56 -0000 On Sat, 24 Jan 2004, 13:32+0200, Adrian Penisoara wrote: > Hi, > > I recently made a test bridging a few VLAN interfaces under FreeBSD > 5.2-REL and ran into some unexpected issue: some packets coming from one > vlan inteface with destination MAC on another vlan would pass in the > parent VLAN interface, but didn't make it into the child vlan interface, > as seen by tcpdump'ing on both of them. Like the packet was eaten before > it made it into the child vlan interface. Activating the debug code > shows that neither the bridge fordwarding routine wasn't catching the > packets. > > All vlans were child of the same parent interface (a RealTek) and they > were all configuren in the same bridge cluster. Either with configured > IPs or without (just up'ed the intefaces). > > I might have botched the interfaces by mutiple reconfigurations, but I > just would like to know if other people had success with bridged VLAN > interfaces (yes, it sounds a bit weird if you think of it :) ). Try this: Index: if_ethersubr.c =================================================================== RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v retrieving revision 1.155 diff -u -r1.155 if_ethersubr.c --- if_ethersubr.c 14 Nov 2003 21:02:22 -0000 1.155 +++ if_ethersubr.c 17 Jan 2004 10:12:54 -0000 @@ -627,6 +627,7 @@ if (rule) /* packet was already bridged */ goto post_stats; +#if 0 if (!(BDG_ACTIVE(ifp))) { /* * Discard packet if upper layers shouldn't see it because it @@ -643,6 +644,7 @@ return; } } +#endif /* Discard packet if interface is not up */ if ((ifp->if_flags & IFF_UP) == 0) { %%% -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org