Subject: Re: port-i386/37533: Client can not connect to any address with ipv6 address
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Arnaud Degroote <degroote@netbsd.org>
List: netbsd-bugs
Date: 12/15/2007 10:25:02
The following reply was made to PR port-i386/37533; it has been noted by GNATS.

From: Arnaud Degroote <degroote@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, metallica2507@yahoo.com
Subject: Re: port-i386/37533: Client can not connect to any address with ipv6 address
Date: Thu, 13 Dec 2007 21:07:28 +0100

 The quick solution is to to unset the sysctl net.inet6.ip6.v6only using
 sysctl -w net.inet6.ip6.v6only=0
 
 Note that this behaviour is not enabled because it has security impact
 (see for example
 ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2006-016.txt.asc).
 
 I think the best thing to do is probably to use a AF_INET6 socket to
 connect to your AF_INET6 server. 
 
 Another note on your code, you may use IN6ADDR_ANY_INIT or in6addr_any
 (depending the context) to let your server binding on any available
 iface.
 
 I hope it will help.
 
 Regards,
 -- 
 Arnaud Degroote
 degroote@netbsd.org