aboutsummaryrefslogtreecommitdiff
path: root/net/tap-win32.c
diff options
context:
space:
mode:
authorPavel Dovgaluk <Pavel.Dovgaluk@ispras.ru>2011-02-21 14:47:50 +0300
committerBlue Swirl <blauwirbel@gmail.com>2011-02-25 15:14:04 +0000
commitc3febae62b646b5bc7aa88b7cffa88160162a94e (patch)
tree5c98ccea8e1c28c49183f75e7bd34a28401ec645 /net/tap-win32.c
parentc7eb1f02edba91e3eec4682fa1adca877696d11d (diff)
Fixing tap adapter for win32
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>
Diffstat (limited to 'net/tap-win32.c')
-rw-r--r--net/tap-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c
index 081904e8d7..596132e272 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)