Received: from [140.186.70.92] (port=58780 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0hlF-0006bC-Dd for qemu-devel@nongnu.org; Tue, 28 Sep 2010 17:30:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0hlE-0003IO-B5 for qemu-devel@nongnu.org; Tue, 28 Sep 2010 17:30:53 -0400 Received: from adelie.canonical.com ([91.189.90.139]:44939) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0hlE-0003IJ-3D for qemu-devel@nongnu.org; Tue, 28 Sep 2010 17:30:52 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1P0hlB-00016o-Tq for ; Tue, 28 Sep 2010 22:30:50 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 03F432E8104 for ; Tue, 28 Sep 2010 21:30:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Sep 2010 21:21:57 -0000 From: =?utf-8?q?Andreas_F=C3=A4rber?= <647793@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100925224135.21662.67397.malonedeb@potassium.ubuntu.com> Message-Id: <20100928212157.20945.18666.malone@palladium.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 647793] Re: tap-bsd.c has no test for Mac OS X Reply-To: Bug 647793 <647793@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I've verified that the code still compiles warning-free on v10.5 with this patch applied. Before: $ qemu-system-sparc64 -M sun4u -m 2048 -net tap -net nic warning: could not open /dev/tap: no virtual network emulation qemu-system-sparc64: -net tap: Device 'tap' could not be initialized After: $ qemu-system-sparc64 -M sun4u -m 2048 -net tap -net nic qemu-system-sparc64: -net tap: warning: could not open /dev/tap0 (No such f= ile or directory): no virtual network emulation qemu-system-sparc64: -net tap: Device 'tap' could not be initialized Could you please resubmit it to qemu-devel using git-send-email and a full = commit message with Signed-off-by? If would also be helpful if you could supply instructions for me to properl= y setup and test this on Mac OS X. Thanks! -- = tap-bsd.c has no test for Mac OS X https://bugs.launchpad.net/bugs/647793 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: The Mac OS X tun/tap driver is equivalent to the FreeBSD driver, but bsd-ta= p.c uses the NetBSD/OpenBSD driver, which works differently. The fix is e= asy--just check for __APPLE__ in the same place where you check for FreeBSD= in net/tap-bsd.c. This problem exists in the current git tree, at least as of yesterday after= noon.