Date: Wed, 13 Nov 2002 02:15:27 +0900 From: Hajimu UMEMOTO <ume@FreeBSD.org> To: gnome@FreeBSD.org, phoenix@FreeBSD.org Cc: Hajimu UMEMOTO <ume@mahoroba.org> Subject: enabling IPv4-mapped IPv6 address in NSPR Message-ID: <ygeznseiua8.wl%ume@mahoroba.org>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hi,
I'm tracking down the problem which www/phoenix cannot play with IPv4
under 5-CURRENT.
IPv4-mapped IPv6 address is default to off under 5-CURRENT. So, if
application wish to use IPv4-mapped IPv6 address, the application
should enable IPv4-mapped IPv6 address explicitly per socket basis as
www/mozilla do. Since phoenix is closed to mozilla 1.2beta,
ports/www/mozilla-devel/files/patch-nsprpub::pr::src::pthreads::ptio.c
is simply applicable for ports/www/phoenix. Yes, it should be applied
to ports/www/phoenix, too.
However, this didn't solve the problem, here. This is because phoenix
wrongly refers /usr/local/lib/libnspr4.so.1, I dunno why. So, I made
a patch to devel/nspr. This patch should save the applications which
depend on devel/nspr under 5-CURRENT.
[-- Attachment #2 --]
$FreeBSD$
--- ../pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002
+++ ../pr/src/pthreads/ptio.c Tue Jul 30 18:52:11 2002
@@ -3414,6 +3414,17 @@
if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno);
else
{
+#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \
+ defined(__FreeBSD__) && defined(IPV6_V6ONLY)
+ if (domain == PR_AF_INET6) {
+ int opt = 0;
+ if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY,
+ &opt, sizeof(opt))) {
+ close(osfd);
+ return NULL;
+ }
+ }
+#endif
fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE);
if (fd == NULL) close(osfd);
}
[-- Attachment #3 --]
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygeznseiua8.wl%ume>
