Network functions patches for win32
A message that is not in the archive (sent off-list or not yet received): -6744444622738784561@unknownmsgid
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.cfix
MSDN includes the following in WSAEALREADY error description forconnect()
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.cfix
This fix allows connection of internal VLAN to the external TAP interface. Iftap_win32_writefunction 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.