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/17/2007 19:30: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: Mon, 17 Dec 2007 20:27:19 +0100

 I've checked your new code. It is correct behaviour that you can't connect
 with your client. If Linux lets you to do it, Linux must be fixed. RFC
 2373 part 2.5.2 says the following :
 
    The unspecified address must not be used as the destination address
    of IPv6 packets or in IPv6 Routing Headers.
 
 What you need to do is the same thing that for ipv4. You need to know
 one of the adress of the host you want to join (localhost here). For
 that purpose, you need to call getaddrinfo and look for AF_INET6 adress
 (man getaddrinfo has some nice examples). With this adress, you can
 connect to your server.
 
 I hope it will help you.
 
 Regards,
 -- 
 Arnaud Degroote
 degroote@netbsd.org