From owner-freebsd-hackers@FreeBSD.ORG Tue May 20 08:11:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EA5137B404 for ; Tue, 20 May 2003 08:11:44 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF59243FB1 for ; Tue, 20 May 2003 08:11:42 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h4KFBdl5662923; Tue, 20 May 2003 19:11:39 +0400 (MSD) Date: Tue, 20 May 2003 19:11:38 +0400 (MSD) From: Maxim Konovalov To: Marco Wertejuk In-Reply-To: <20030516153333.GA29165@maeko> Message-ID: <20030520190746.P6042@news1.macomnet.ru> References: <20030514184845.GA7573@maeko> <20030515114239.Y95792@news1.macomnet.ru> <20030516153333.GA29165@maeko> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: vlan/bridging broken in 4.8-release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 15:11:44 -0000 On 17:33+0200, May 16, 2003, Marco Wertejuk wrote: > Hello Maxim, > > | I am trying to solve some bugs in bridging code in -current. I > | believe we have the same bugs in -stable as well. First of all, do > | not use bridge.ko, use 'options BRIDGE' in your kernel config file > | instead. Second, try to play with net.inet.ip.check_interface sysctl. > > the bridge option is statically compiled into the kernel and > I could not see any change when playing around with > net.inet.ip.check_interface. > > Any other ideas? Try this patch^Whack. Index: if_ethersubr.c =================================================================== RCS file: /home/ncvs/src/sys/net/if_ethersubr.c,v retrieving revision 1.147 diff -u -r1.147 if_ethersubr.c --- if_ethersubr.c 5 May 2003 09:15:50 -0000 1.147 +++ if_ethersubr.c 20 May 2003 15:06:50 -0000 @@ -625,6 +625,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 @@ -641,6 +642,7 @@ return; } } +#endif /* Discard packet if interface is not up */ if ((ifp->if_flags & IFF_UP) == 0) { %%% Btw http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/46961 looks similar. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org