On Fri, Mar 21, 2003 at 02:07:28PM -0500, Derek J. Balling wrote:
>
> On Friday, March 21, 2003, at 01:27 PM, Branko Čibej wrote:
> >No, this looks exactly like Neon's getaddrinfo problem on HP-UX. Does
> >AIX have getaddrinfo? Does it work? :-) You could try disabling it in
> >ne_socket.c:ne_addr_resolve.
>
> Bingo. I have a sandbox.
>
> So, on AIX 4.3.2.0, the following things need fixed:
>
> - An ifdef block needs to be added for aix to disable GETADDRINFO,
> same as HPUX
Can you try this patch instead (after re-enabling getaddrinfo support)?
This fixes the problem for me on AIX 4.3.3.
--- ne_socket.c 3 Feb 2003 22:17:06 -0000 1.117.2.6
+++ ne_socket.c 22 Mar 2003 18:51:36 -0000
@@ -780,14 +780,17 @@
{
#ifdef USE_GETADDRINFO
#ifdef AF_INET6
+ /* fill in the _family field for AIX 4.3, which forgets to do so. */
if (addr->ai_family == AF_INET6) {
struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)addr->ai_addr;
in6->sin6_port = port;
+ in6->sin6_family = AF_INET6;
} else
#endif
if (addr->ai_family == AF_INET) {
struct sockaddr_in *in = (struct sockaddr_in *)addr->ai_addr;
in->sin_port = port;
+ in->sin_family = AF_INET;
} /* else something weird, and the connect should fail... */
return connect(fd, addr->ai_addr, addr->ai_addrlen);
#else
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 22 20:25:10 2003