From 2bed0e5377e84241c579e95212ab7b2aa8b5df84 Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Fri, 4 Aug 2006 20:53:20 +0000 Subject: [PATCH] solaris-sockaddr-storage-20060804 the head has the sockaddr_storage patch from the rxtcp work, so it needs this --- src/rx/SOLARIS/rx_knet.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/rx/SOLARIS/rx_knet.c b/src/rx/SOLARIS/rx_knet.c index 721c9c2a1..96b2899f8 100644 --- a/src/rx/SOLARIS/rx_knet.c +++ b/src/rx/SOLARIS/rx_knet.c @@ -222,11 +222,10 @@ struct sockaddr_in rx_sockaddr; /* Allocate a new socket at specified port in network byte order. */ osi_socket * -rxk_NewSocketHost(afs_uint32 ahost, short aport) +rxk_NewSocketHost(struct sockaddr_storage *addr, int salen) { vnode_t *accessvp; struct sonode *so; - struct sockaddr_in addr; int error; int len; @@ -294,11 +293,7 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport) return NULL; } - addr.sin_family = AF_INET; - addr.sin_port = aport; - addr.sin_addr.s_addr = ahost; /* I wonder what the odds are on - needing to unbyteswap this */ - error = sockfs_sobind(so, (struct sockaddr *)&addr, sizeof(addr), 0, 0); + error = sockfs_sobind(so, (struct sockaddr *)addr, salen, 0, 0); if (error != 0) { return NULL; } -- 2.39.5