Author: cgutman Date: Sun Aug 8 16:36:48 2010 New Revision: 48489
URL: http://svn.reactos.org/svn/reactos?rev=48489&view=rev Log: [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
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c
Modified: branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-branch/dll/win32/m... ============================================================================== --- branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c [iso-8859-1] (original) +++ branches/aicom-network-branch/dll/win32/mswsock/msafd/socket.c [iso-8859-1] Sun Aug 8 16:36:48 2010 @@ -693,6 +693,12 @@ ServiceFlags = lpProtocolInfo->dwServiceFlags1; ProviderFlags = lpProtocolInfo->dwProviderFlags; ProviderId = lpProtocolInfo->ProviderId; + + /* HACK: We don't set this flag properly ATM */ + if(SocketType == SOCK_DGRAM || SocketType == SOCK_RAW) + { + ServiceFlags |= XP1_CONNECTIONLESS; + }
/* Create the actual socket */ ErrorCode = SockSocket(AddressFamily,