Received: from [140.186.70.92] (port=56426 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT4Lo-0002Kl-NE for qemu-devel@nongnu.org; Sun, 27 Jun 2010 22:45:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT4Ln-000779-CJ for qemu-devel@nongnu.org; Sun, 27 Jun 2010 22:45:36 -0400 Received: from adelie.canonical.com ([91.189.90.139]:49386) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT4Ln-00076z-5x for qemu-devel@nongnu.org; Sun, 27 Jun 2010 22:45:35 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OT4Lk-0006FR-BZ for ; Mon, 28 Jun 2010 03:45:32 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id BB5672E808C for ; Mon, 28 Jun 2010 03:45:31 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Jun 2010 02:38:53 -0000 From: "KPKang@telit.com" Sender: bounces@canonical.com References: <20100604073655.4709.18442.malonedeb@soybean.canonical.com> Message-Id: <20100628023853.18635.89367.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 589564] Re: Windows host tap (tap-win32) is not working on QEMU ver 0.12.X Reply-To: Bug 589564 <589564@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 also had the same problem with 0.12.x version. = BTW, I slightly changed source code to avoid this problem. = Here is what I did for this below. = I haven't taken analysis of this operation details so my apporach may not b= e the right solution. (Sorry for that). = Anyway, refer to my comment (deleted for tap). = file : net.c = static ssize_t qemu_vlan_deliver_packet(VLANClientState *sender, unsigned flags, const uint8_t *buf, size_t size, void *opaque) { VLANState *vlan =3D opaque; VLANClientState *vc; ssize_t ret =3D -1; QTAILQ_FOREACH(vc, &vlan->clients, next) { ssize_t len; if (vc =3D=3D sender) { continue; } if (vc->link_down) { ret =3D size; continue; } /* deleted for tap if (vc->receive_disabled) { ret =3D 0; continue; } */ if (flags & QEMU_NET_PACKET_FLAG_RAW && vc->info->receive_raw) { len =3D vc->info->receive_raw(vc, buf, size); } else { len =3D vc->info->receive(vc, buf, size); } /* deleted for tap if (len =3D=3D 0) { vc->receive_disabled =3D 1; } */ ret =3D (ret >=3D 0) ? ret : len; } return ret; } -- = Windows host tap (tap-win32) is not working on QEMU ver 0.12.X https://bugs.launchpad.net/bugs/589564 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: To reproduce the bug: = 1) Install tap driver from openvpn (either v8/v9). Rename the tap connectio= n to "mytap" and set the IP to 192.168.1.1 (or any ip) 2) use any QEMU 0.12.X and issue the following command = c:\qemu> qemu -net nic -net tap,ifname=3Dmytap -cdrom ../linux.iso 3) Inside linux guest system, set the ip of the nic # ifconfig eth0 192.168.1.2 4) In the windows host try to ping the linux guest (or the other way around= , after you disable the windows firewall) c:\qemu> ping 192.168.1.2 Pinging 192.168.1.2 with 32 bytes of data: Reply from 192.168.1.1: Destination host unreachable. Those above steps is not working on QEMU 0.12.X. But confirmed working (pin= g successful) on: - QEMU 0.9.X - QEMU 0.10.X - QEMU 0.11.X I have tried with windows XP and windows 7 host system. I haven't tried the= qemu latest from git repository, but looking at the "net/tap-win32.c" revi= sion date, I guess the bug has been around for a while. Thanks.