From patchwork Mon Feb 21 11:47:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 83827 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 13841B710F for ; Mon, 21 Feb 2011 22:50:44 +1100 (EST) Received: from localhost ([127.0.0.1]:35298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrUHp-0004Ss-Eo for incoming@patchwork.ozlabs.org; Mon, 21 Feb 2011 06:50:41 -0500 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" To: Date: Mon, 21 Feb 2011 14:47:50 +0300 Message-ID: <000101cbd1bd$2ac21e20$80465a60$@Dovgaluk@ispras.ru> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcvRvSqvByfAVZ5SRZaxy6ZmfGbdvg== Content-Language: ru X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 83.149.198.201 Subject: [Qemu-devel] [PATCH] Fixing tap adapter for win32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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)