ws2_32: Add support to check if an IPX socket is bound.

This commit is contained in:
Bruno Jesus 2013-12-27 18:32:29 -02:00 committed by Alexandre Julliard
parent 38a3a574f3
commit ae728cfa27
1 changed files with 5 additions and 2 deletions

View File

@ -1427,8 +1427,11 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
{
#ifdef HAS_IPX
case AF_IPX:
FIXME("don't know how to tell if IPX socket is bound, assuming it is!\n");
return TRUE;
{
static const struct sockaddr_ipx emptyAddr;
struct sockaddr_ipx *ipx = (struct sockaddr_ipx*) uaddr;
return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
}
#endif
case AF_INET6:
{