Skip to content

Commit 5a0b35c

Browse files
committed
[MSWSOCK]
- Add a hack to set the connectionless flag for datagram and raw sockets (the previous msafd has the same hack) - The DHCP service can send and receive packets now svn path=/branches/aicom-network-branch/; revision=48489
1 parent c720250 commit 5a0b35c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dll/win32/mswsock/msafd/socket.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,12 @@ WSPSocket(INT AddressFamily,
693693
ServiceFlags = lpProtocolInfo->dwServiceFlags1;
694694
ProviderFlags = lpProtocolInfo->dwProviderFlags;
695695
ProviderId = lpProtocolInfo->ProviderId;
696+
697+
/* HACK: We don't set this flag properly ATM */
698+
if(SocketType == SOCK_DGRAM || SocketType == SOCK_RAW)
699+
{
700+
ServiceFlags |= XP1_CONNECTIONLESS;
701+
}
696702

697703
/* Create the actual socket */
698704
ErrorCode = SockSocket(AddressFamily,

0 commit comments

Comments
 (0)