Skip to contentSkip to conversation

Fixing tap adapter for win32

PATCH Blue Swirl 1 participant 1 message Feb 25, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 522130182381655567@unknownmsgid

Blue Swirl

author Applied
#1 lore raw

Thanks, applied.

Quoted 27 lines · Pavel Dovgaluk

  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.

---
net/tap-win32.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
net/tap-win32.c +1 -1
index 081904e..596132e 100644
@@ -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)