From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 2 12:26:48 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFA8210656A6 for ; Wed, 2 Sep 2009 12:26:48 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from mx1.h3q.net (mx1.h3q.net [IPv6:2001:16d8:ffe5:1::f1]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC4C8FC0A for ; Wed, 2 Sep 2009 12:26:48 +0000 (UTC) Received: from smtp-auth.h3q.net (smtp-auth.h3q.net [127.0.0.1]) (Authenticated sender: hidden) by mx1.h3q.net (Postfix) with ESMTPSA id 9CCC433DDA ; Wed, 2 Sep 2009 14:26:45 +0200 (CEST) Message-ID: <4A9E6481.9070200@shapeshifter.se> Date: Wed, 02 Sep 2009 14:26:41 +0200 From: Fredrik Lindberg User-Agent: Thunderbird 2.0.0.22 (X11/20090801) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <4A8EB3D2.7010109@shapeshifter.se> In-Reply-To: <4A8EB3D2.7010109@shapeshifter.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: VirtualBox bridged adapter (vboxnetflt) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 12:26:48 -0000 Okay, so this past weekend I re-wrote the vboxnetflt driver using netgraph (as suggested by Julian Elischer). It's now an netgraph node and automatically attaches to ng_ether. This is probably the best solution that also works properly on FreeBSD 7. One minor thing, one do I manually generate opt_netgraph.h on FreeBSD 7 without using bsd.kmod.mk? Currently I just create an empty file. Also changed it to the MIT license to keep the Vbox guys happy (in reality a NOP as the MIT and 2-clause BSD licenses are essentially equal). This version has been tested on FreeBSD 7.2/i386 and FreeBSD 8/i386-SMP. Patches are at http://www.shapeshifter.se/pub/patches/vbox-freebsd-netif-20090831.patch http://www.shapeshifter.se/pub/patches/vbox-freebsd-vboxnetflt-20090831.patch http://www.shapeshifter.se/pub/patches/virtualbox-port.patch Apply/compile with cd /usr/ports/emulators/virtualbox make clean patch mkdir work/virtualbox-3.0.51r22226/src/VBox/HostDrivers/VBoxNetFlt/freebsd patch -d work/virtualbox-3.0.51r22226 < vbox-freebsd-netif-20090831.patch patch -d work/virtualbox-3.0.51r22226 < vbox-freebsd-vboxnetflt-20090831.patch patch < virtualbox-port.patch make install Test if you're interested and report failures/successes. Fredrik