ws2_32: Add debug support for IrDA addresses.

This commit is contained in:
Juan Lang 2009-08-12 09:15:17 -07:00 committed by Alexandre Julliard
parent f166a9dfbd
commit c3f2eceaf2
1 changed files with 10 additions and 0 deletions

View File

@ -197,6 +197,16 @@ static inline const char *debugstr_sockaddr( const struct WS_sockaddr *a )
return wine_dbg_sprintf("{ family AF_INET6, address %s, port %d }",
p, ntohs(sin->sin6_port));
}
case WS_AF_IRDA:
{
DWORD addr;
memcpy( &addr, ((const SOCKADDR_IRDA *)a)->irdaDeviceID, sizeof(addr) );
addr = ntohl( addr );
return wine_dbg_sprintf("{ family AF_IRDA, addr %08x, name %s }",
addr,
((const SOCKADDR_IRDA *)a)->irdaServiceName);
}
default:
return wine_dbg_sprintf("{ family %d }", a->sa_family);
}