From owner-freebsd-net@FreeBSD.ORG Wed Feb 1 09:42:08 2006 Return-Path: X-Original-To: net@FreeBSD.org 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 B388816A420 for ; Wed, 1 Feb 2006 09:42:08 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B13043D4C for ; Wed, 1 Feb 2006 09:42:07 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k119g5Mf032262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Feb 2006 12:42:06 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k119g5Bo032261; Wed, 1 Feb 2006 12:42:05 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 1 Feb 2006 12:42:05 +0300 From: Gleb Smirnoff To: Luigi Rizzo Message-ID: <20060201094205.GU4297@cell.sick.ru> References: <20060201005658.A70005@xorpc.icir.org> <20060201090421.GT4297@FreeBSD.org> <20060201013619.A70391@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060201013619.A70391@xorpc.icir.org> User-Agent: Mutt/1.5.6i Cc: net@FreeBSD.org Subject: Re: if_bridge.ko requires INET6... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 09:42:08 -0000 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