Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2003 19:11:38 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Marco Wertejuk <wertejuk@mwcis.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: vlan/bridging broken in 4.8-release?
Message-ID:  <20030520190746.P6042@news1.macomnet.ru>
In-Reply-To: <20030516153333.GA29165@maeko>
References:  <20030514184845.GA7573@maeko> <20030515114239.Y95792@news1.macomnet.ru> <20030516153333.GA29165@maeko>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030520190746.P6042>