From owner-freebsd-current@FreeBSD.ORG Sat Aug 12 10:08:55 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0C9516A4DF for ; Sat, 12 Aug 2006 10:08:55 +0000 (UTC) (envelope-from thompsa@freebsd.org) Received: from grunt3.ihug.co.nz (grunt3.ihug.co.nz [203.109.254.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2570543D70 for ; Sat, 12 Aug 2006 10:08:55 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from 203-109-251-39.static.bliink.ihug.co.nz (heff.fud.org.nz) [203.109.251.39] by grunt3.ihug.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1GBqQE-0000Ar-00; Sat, 12 Aug 2006 22:08:50 +1200 Received: by heff.fud.org.nz (Postfix, from userid 1001) id 61A9C1CC25; Sat, 12 Aug 2006 22:08:49 +1200 (NZST) Date: Sat, 12 Aug 2006 22:08:49 +1200 From: Andrew Thompson To: Giorgos Keramidas Message-ID: <20060812100849.GC38775@heff.fud.org.nz> Mail-Followup-To: Andrew Thompson , Giorgos Keramidas , Christian Brueffer , freebsd-current@FreeBSD.org, sam@FreeBSD.org References: <86zmeafnjz.fsf@gothmog.pc> <20060812071830.GA1755@haakonia.hitnet.RWTH-Aachen.DE> <20060812073123.GA9233@gothmog.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060812073123.GA9233@gothmog.pc> User-Agent: Mutt/1.5.11 Cc: sam@FreeBSD.org, freebsd-current@FreeBSD.org, Christian Brueffer Subject: Re: is if_bridge broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 10:08:55 -0000 On Sat, Aug 12, 2006 at 10:31:24AM +0300, Giorgos Keramidas wrote: > On 2006-08-12 09:18, Christian Brueffer wrote: > >On Sat, Aug 12, 2006 at 09:58:08AM +0300, keramida@FreeBSD.org wrote: > >> I am trying to run QEMU on a fairly recent snapshot of HEAD, but it failed with: > >> > >> # DISPLAY=:0 qemu -win2k-hack -hda windows.img -boot c -net nic -net tap > >> bridge0: creating bridge interface > >> ifconfig: SIOCIFCREATE2: Invalid argument > >> /etc/qemu-ifup: ERROR: bridge0: failed to create > >> /etc/qemu-ifup: could not launch network script > >> Could not initialize device 'tap' > >> # > >> > >> At about the same time, `ifconfig bridge0 create' fails with: > >> > >> Aug 12 09:36:58 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available > >> Aug 12 09:36:58 gothmog giorgos: /etc/qemu-ifup: ERROR: bridge0: failed to create > >> > > Have you tried loading the bridgestp module as suggested? Is has been > > split out of if_bridge recently and exists in my CURRENT system. > > Yes :-( > > It doesn't make a lot of difference: > It seems I forgot the module version, this should hopefully fix it. Index: bridgestp.c =================================================================== RCS file: /home/ncvs/src/sys/net/bridgestp.c,v retrieving revision 1.18 diff -u -p -r1.18 bridgestp.c --- bridgestp.c 2 Aug 2006 02:51:42 -0000 1.18 +++ bridgestp.c 12 Aug 2006 10:06:58 -0000 @@ -929,6 +929,7 @@ static moduledata_t bstp_mod = { }; DECLARE_MODULE(bridgestp, bstp_mod, SI_SUB_PSEUDO, SI_ORDER_ANY); +MODULE_VERSION(bridgestp, 1); void bstp_attach(struct bstp_state *bs, bstp_state_cb_t state_callback)