From owner-freebsd-current@FreeBSD.ORG Sat Aug 12 06:58:28 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 47C0E16A4DE; Sat, 12 Aug 2006 06:58:28 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66A7C43D4C; Sat, 12 Aug 2006 06:58:26 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-2) with ESMTP id k7C6w9ih015081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 12 Aug 2006 09:58:10 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k7C6w8iY008243; Sat, 12 Aug 2006 09:58:08 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k7C6w826008242; Sat, 12 Aug 2006 09:58:08 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: keramida@FreeBSD.org To: freebsd-current@FreeBSD.org From: Giorgos Keramidas Date: Sat, 12 Aug 2006 09:58:08 +0300 Message-ID: <86zmeafnjz.fsf@gothmog.pc> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.816, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.58, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: sam@FreeBSD.org Subject: 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 06:58:28 -0000 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 Aug 12 09:37:17 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available Aug 12 09:48:25 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available Aug 12 09:48:49 gothmog kernel: KLD if_bridge.ko: depends on bridgestp - not available It appears to have been caused by src/sys/net/if.h revision 1.261: date: 2006/07/09 06:04:00; author: sam; state: Exp; lines: +6 -3 Revise network interface cloning to take an optional opaque parameter that can specify configuration parameters: o rev cloner api's to add optional parameter block o add SIOCCREATE2 that accepts parameter data o rev vlan support to use new api (maintain old code) Reviewed by: arch@ Any idea how if_bridge can be fixed again?