From owner-freebsd-net@FreeBSD.ORG Wed Feb 1 09:04:25 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 119CA16A420 for ; Wed, 1 Feb 2006 09:04:25 +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 0FBB443D46 for ; Wed, 1 Feb 2006 09:04:23 +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 k1194LmO031647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Feb 2006 12:04:21 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1194Lj0031646; Wed, 1 Feb 2006 12:04:21 +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:04:21 +0300 From: Gleb Smirnoff To: Luigi Rizzo Message-ID: <20060201090421.GT4297@FreeBSD.org> References: <20060201005658.A70005@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060201005658.A70005@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:04:25 -0000 On Wed, Feb 01, 2006 at 12:56:58AM -0800, Luigi Rizzo wrote: L> just noticed that if_bridge.ko fails to load if your kernel L> is not compiled with INET6 - the failure is actually only L> on symbols related to stats gathering in L> bridge_ip6_checkbasic() L> L> I wonder if it might be worthwhile just ignoring L> those stats when compiling if_bridge as a module, L> so it can be loaded on ipv4 only kernels ? If you have compiled the modules as part of buildkernel target, then all options from kernel would apply to all modules, thus the bridge_ip6_checkbasic() function won't be present in if_bridge.ko, and you would successfully load the module. P.S. This is not if_bridge neither INET6 problem. This is generic problem with modules built outside of buildkernel target. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE