[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [PATCH] Fix svnserve not accepting IPV4 connections on an IPV6 socket?

From: nick vajberg <nickvajberg_at_yahoo.dk>
Date: 2005-07-12 11:46:30 CEST

I don't know the context of your patch, but the "is
IPv4 mapped" flag seems to be missing. Here's how I'd
do it:

#if APR_HAVE_IPV6
#ifdef AP_ENABLE_V4_MAPPED
int mapped = 0;
#else
int mapped = 1;
#endif
#endif

#if APR_HAVE_IPV6
 /* Allows IPV4 connections to a V6 socket */
 if (APR_INET6 == sa->family)
 apr_socket_opt_set(sock, APR_IPV6_V6ONLY, mapped);
#endif

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 12 11:47:18 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.