Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2006 12:42:05 +0300
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        net@FreeBSD.org
Subject:   Re: if_bridge.ko requires INET6...
Message-ID:  <20060201094205.GU4297@cell.sick.ru>
In-Reply-To: <20060201013619.A70391@xorpc.icir.org>
References:  <20060201005658.A70005@xorpc.icir.org> <20060201090421.GT4297@FreeBSD.org> <20060201013619.A70391@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 01, 2006 at 01:36:19AM -0800, Luigi Rizzo wrote:
L> On Wed, Feb 01, 2006 at 12:04:21PM +0300, Gleb Smirnoff wrote:
L> > On Wed, Feb 01, 2006 at 12:56:58AM -0800, Luigi Rizzo wrote:
L> > L> just noticed that if_bridge.ko fails to load if your kernel
L> > L> is not compiled with INET6 - the failure is actually only
L> > L> on symbols related to stats gathering in
L> > L> bridge_ip6_checkbasic()
L> > L> 
L> > L> I wonder if it might be worthwhile just ignoring
L> > L> those stats when compiling if_bridge as a module,
L> > L> so it can be loaded on ipv4 only kernels ?
L> > 
L> > If you have compiled the modules as part of buildkernel
L> > target, then all options from kernel would apply to all
L> > modules, thus the bridge_ip6_checkbasic() function won't
L> > be present in if_bridge.ko, and you would successfully
L> > load the module.
L> 
L> i _did_ compile the modules with make buildkernel
L> and this how i got the failure. This was on a
L> relatively fresh 6.0-STABLE tree.
L> Perhaps it has been fixed in -current but not in -stable ?
L> 
L> > P.S. This is not if_bridge neither INET6 problem. This is
L> > generic problem with modules built outside of buildkernel
L> > target.
L> 
L> see above. I am glad there is a fix designed to address
L> this problem, now it's just a matter of figuring out
L> why the fix doesn't work :)

Oh, I've mistaken. We already got infrastructure for such thing -
HAVE_KERNEL_OPTION_HEADERS, but now it is utilized only by
polling(4).

Someone should make some job and teach INET6 to use HAVE_KERNEL_OPTION_HEADERS.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



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