Skip to contentSkip to conversation

Network functions patches for win32

PATCH Blue Swirl 1 participant 1 message Feb 20, 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): -6744444622738784561@unknownmsgid

Blue Swirl

author
#1 lore raw
Quoted 10 lines · Pavel Dovgaluk

This patch contains some fixes for network functions, working in Windows environment, and consists of two parts:

1. net/socket.c fix
  MSDN includes the following in WSAEALREADY error description for connect()
  function: "To preserve backward compatibility, this error is reported as WSAEINVAL to Winsock applications that link to either Winsock.dll or Wsock32.dll". So check of this error code was added to allow network connections through the sockets in Windows.

Quoted 4 lines

2. net/tap-win32.c fix
  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.

Even though the changes are small, the fixes are unrelated. Please split the patch in two. Otherwise this looks OK.