Fixing tap adapter for win32
authorPavel Dovgaluk <Pavel.Dovgaluk@ispras.ru>
Mon, 21 Feb 2011 11:47:50 +0000 (14:47 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 25 Feb 2011 15:14:04 +0000 (15:14 +0000)
   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 <pavel.dovgaluk@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net/tap-win32.c

index 081904e8d74502684654a8c3463fb9d44816e886..596132e2725e2d1f5c43f73a924a09806fb6933e 100644 (file)
@@ -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)