Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2002 02:15:36 +0900
From:      JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp>
To:        Stephane Carrez <Stephane.Carrez@Sun.COM>
Cc:        kris@obsecurity.org, carey_june@hotmail.com, net@FreeBSD.ORG, bugs@FreeBSD.ORG
Subject:   Re: FreeBSD-4.3 IPv6 bug - Further information.
Message-ID:  <y7v7kqrtphj.wl@condor.jinmei.org>
In-Reply-To: <200201090941.KAA03750@sunchorus.France.Sun.COM>
References:  <200201090941.KAA03750@sunchorus.France.Sun.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Wed, 9 Jan 2002 10:41:10 +0100 (MET), 
>>>>> Stephane Carrez <Stephane.Carrez@Sun.COM> said:

> Assuming that the server accepting socket is AF_INET6, you should do
> the following on the socket:

>         int on;

>         on = 1;
>         setsockopt(fd, IPPROTO_IPV6, IPV6_BINDV6ONLY,
>                    &on, sizeof(on));

Correct, but IPV6_BINDV6ONLY is FreeBSD (4.3) specific, so I'd
recommend to use IPV6_V6ONLY on FreeBSD 4.4.  The latter one is
defined in a public specification
"draft-ietf-ipngwg-rfc2553bis-04.txt", and we can expect wider
portability with it.

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					jinmei@isl.rdc.toshiba.co.jp

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y7v7kqrtphj.wl>