From owner-freebsd-current Mon Jul 29 8:11:25 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 DE4D337B400 for ; Mon, 29 Jul 2002 08:11:22 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38A2243E42 for ; Mon, 29 Jul 2002 08:11:22 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30805 invoked from network); 29 Jul 2002 15:11:20 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 29 Jul 2002 15:11:20 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g6TFBJuR050576; Mon, 29 Jul 2002 11:11:19 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3D455B36.10500@hotmail.com> Date: Mon, 29 Jul 2002 11:10:05 -0400 (EDT) From: John Baldwin To: walt Subject: Re: Removing INET6 does stop the crashes. Cc: freebsd-current@freebsd.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 On 29-Jul-2002 walt wrote: > Maxim Konovalov wrote: >> On 18:19-0700, Jul 28, 2002, walt wrote: >> >> >>>After reading Scott Long's recent post I tried removing INET6 >>>from my kernel config and the crashes due to mozilla are now >>>definitely gone. >> >> [...] >> >> Please try the next patch. >> >> Index: sys/netinet/tcp_usrreq.c >> =================================================================== >> RCS file: /home/ncvs/src/sys/netinet/tcp_usrreq.c,v >> retrieving revision 1.78 >> diff -u -r1.78 tcp_usrreq.c >> --- sys/netinet/tcp_usrreq.c 25 Jul 2002 18:10:04 -0000 1.78 >> +++ sys/netinet/tcp_usrreq.c 28 Jul 2002 14:34:09 -0000 >> @@ -407,8 +407,10 @@ >> if (IN6_IS_ADDR_V4MAPPED(&sin6p->sin6_addr)) { >> struct sockaddr_in sin; >> >> - if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0) >> - return(EINVAL); >> + if ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0) { >> + error = EINVAL; >> + goto out; >> + } >> >> in6_sin6_2_sin(&sin, sin6p); >> inp->inp_vflag |= INP_IPV4; >> >> %%% > > Yes, it stops the crashes. If I set v6only = 0 then the machine > works normally; if set to 1 then I get "connection refused" from > any server I try to connect to. Is that normal v6only behavior? Let's get this patch committed then. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message