Received: from [140.186.70.92] (port=43333 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrUGs-0004OU-IJ for qemu-devel@nongnu.org; Mon, 21 Feb 2011 06:49:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrUGr-0004J2-G2 for qemu-devel@nongnu.org; Mon, 21 Feb 2011 06:49:42 -0500 Received: from smtp.ispras.ru ([83.149.198.201]:44985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrUGr-0004Iv-2L for qemu-devel@nongnu.org; Mon, 21 Feb 2011 06:49:41 -0500 Received: from PASHAISP (ispserv.ispras.ru [83.149.198.72]) by smtp.ispras.ru (Postfix) with ESMTP id 972265D40C2 for ; Mon, 21 Feb 2011 14:38:50 +0300 (MSK) From: "Pavel Dovgaluk" Date: Mon, 21 Feb 2011 14:47:50 +0300 Message-ID: <000101cbd1bd$2ac21e20$80465a60$@Dovgaluk@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: ru Subject: [Qemu-devel] [PATCH] Fixing tap adapter for win32 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This fix allows connection of internal VLAN to the external TAP interface. If tap_win32_write function always returns 0, the TAP network interface in QEMU is disabled. Signed-off-by: Pavel Dovgalyuk --- net/tap-win32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/tap-win32.c b/net/tap-win32.c index 081904e..596132e 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -480,7 +480,7 @@ static int tap_win32_write(tap_win32_overlapped_t *overlapped, } } - return 0; + return write_size; } static DWORD WINAPI tap_win32_thread_entry(LPVOID param)