From owner-freebsd-current Tue Jul 30 3: 7:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6491A37B400; Tue, 30 Jul 2002 03:07:26 -0700 (PDT) Received: from cheer.mahoroba.org (flets19-007.kamome.or.jp [218.45.19.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3550243E67; Tue, 30 Jul 2002 03:07:24 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:3ZAfwSfnLtFLKc0I/433plvKOg/4rhkM0jRZ9GPdaRDx7fOwFahPLFZaDi7ZmOnS@lyrics-wi.mahoroba.org [IPv6:2001:200:301:0:202:2dff:fe41:8630]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.5/8.12.5) with ESMTP/inet6 id g6UA7GB4089279 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 30 Jul 2002 19:07:20 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 30 Jul 2002 19:07:12 +0900 Message-ID: From: Hajimu UMEMOTO To: walt , sumikawa@FreeBSD.org Cc: freebsd-current@freebsd.org Subject: Re: Removing INET6 does stop the crashes. In-Reply-To: References: <3D455B36.10500@hotmail.com> User-Agent: xcite1.38> Wanderlust/2.9.14 (Unchained Melody) SEMI/1.14.4 (Hosorogi) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.0-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: multipart/mixed; boundary="Multipart_Tue_Jul_30_19:07:12_2002-1" X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Multipart_Tue_Jul_30_19:07:12_2002-1 Content-Type: text/plain; charset=US-ASCII Hi, >>> Tue, 30 Jul 2002 02:12:41 +0900, >>> Hajimu UMEMOTO said: wa1ter> Yes, it stops the crashes. If I set v6only = 0 then the machine wa1ter> works normally; if set to 1 then I get "connection refused" from wa1ter> any server I try to connect to. Is that normal v6only behavior? ume> It is expected behaivior. However, I realized that Mozilla still has ume> the problem that IPv4-mapped IPv6 address is used to connect to IPv4 ume> site. It should be fixed by Mozilla side. I heared that NetBSD ume> pkgsrc has a workaround to this problem: ume> http://cvsweb.no.netbsd.org/bsdweb.cgi/pkgsrc/www/mozilla/patches/patch-be?rev=1.8&content-type=text/x-cvsweb-markup ume> Our port should have it, too. This patch is for ports/www/mozilla, and enables IPv4-mapped IPv6 address per socket basis. Please try it. Sincerely, --Multipart_Tue_Jul_30_19:07:12_2002-1 Content-Type: text/x-patch; charset=US-ASCII Content-Disposition: attachment; filename="patch-nsprpub::pr::src::pthreads::ptio.c" Content-Transfer-Encoding: 7bit Index: nsprpub/pr/src/pthreads/ptio.c diff -u nsprpub/pr/src/pthreads/ptio.c.orig nsprpub/pr/src/pthreads/ptio.c --- nsprpub/pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002 +++ nsprpub/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); } --Multipart_Tue_Jul_30_19:07:12_2002-1 Content-Type: text/plain; charset=US-ASCII -- 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/ --Multipart_Tue_Jul_30_19:07:12_2002-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message