ws2_32: Fix broadcast address calculation.
This commit is contained in:
parent
a10a8eb134
commit
17248108d4
|
@ -2164,7 +2164,7 @@ INT WINAPI WSAIoctl(SOCKET s,
|
|||
|
||||
addr = inet_addr(ptr->IpAddressList.IpAddress.String);
|
||||
mask = inet_addr(ptr->IpAddressList.IpMask.String);
|
||||
bcast = addr | (addr & !mask);
|
||||
bcast = addr | ~mask;
|
||||
intArray->iiAddress.AddressIn.sin_family = AF_INET;
|
||||
intArray->iiAddress.AddressIn.sin_port = 0;
|
||||
intArray->iiAddress.AddressIn.sin_addr.WS_s_addr =
|
||||
|
|
Loading…
Reference in New Issue