From owner-svn-src-all@FreeBSD.ORG Sat Oct 27 07:51:57 2012 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE7BB61B; Sat, 27 Oct 2012 07:51:57 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) by mx1.freebsd.org (Postfix) with ESMTP id 0C1988FC08; Sat, 27 Oct 2012 07:51:56 +0000 (UTC) Received: from alph.allbsd.org (p1137-ipbf1505funabasi.chiba.ocn.ne.jp [118.7.212.137]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id q9R7pfel008157 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Oct 2012 16:51:51 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.allbsd.org (8.14.5/8.14.5) with ESMTP id q9R7pd7m001399; Sat, 27 Oct 2012 16:51:40 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sat, 27 Oct 2012 16:51:29 +0900 (JST) Message-Id: <20121027.165129.351491404794553651.hrs@allbsd.org> To: brian@FreeBSD.org Subject: Re: svn commit: r242074 - head/etc/rc.d From: Hiroki Sato In-Reply-To: <20121027072048.GB77528@thong.lan.Awfulhak.org> References: <20121026235044.GA77528@thong.lan.Awfulhak.org> <20121027.155707.2226765252880570777.hrs@allbsd.org> <20121027072048.GB77528@thong.lan.Awfulhak.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart0(Sat_Oct_27_16_51_29_2012_211)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Sat, 27 Oct 2012 16:51:51 +0900 (JST) X-Spam-Status: No, score=-98.1 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,SAMEHELOBY2HOP,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, dim@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2012 07:51:58 -0000 ----Security_Multipart0(Sat_Oct_27_16_51_29_2012_211)-- Content-Type: Multipart/Mixed; boundary="--Next_Part(Sat_Oct_27_16_51_29_2012_951)--" Content-Transfer-Encoding: 7bit ----Next_Part(Sat_Oct_27_16_51_29_2012_951)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Brian Somers wrote in <20121027072048.GB77528@thong.lan.Awfulhak.org>: br> On Sat, Oct 27, 2012 at 03:57:07PM +0900, Hiroki Sato wrote: br> > Brian Somers wrote br> > in <20121026235044.GA77528@thong.lan.Awfulhak.org>: br> > br> > br> When I reboot and don't use -accept_rtadv (and leave br> > br> net.inet6.ip6.accept_rtadv set to zero), I repeatedly see this in br> > br> /var/log/messages: br> > br> br> > br> Oct 26 16:31:26 gw rtadvd[2879]: non-zero lifetime RA on RA receiving interface sk0. Ignored. br> > br> Oct 26 16:31:33 gw rtadvd[2879]: non-zero lifetime RA on RA receiving interface bridge0. Ignored. br> > br> Oct 26 16:31:42 gw rtadvd[2879]: non-zero lifetime RA on RA receiving interface sk0. Ignored. br> > br> Oct 26 16:31:49 gw rtadvd[2879]: non-zero lifetime RA on RA receiving interface bridge0. Ignored. br> > br> br> > br> This seems to be the problem. Because check_accept_rtadv() (in br> > br> rtadvd) reports the interface as being able to accept RAs (it finds br> > br> the ND6_IFF_ACCEPT_RTADV flag), it drops outgoing RAs and nothing br> > br> happens. br> > br> > Can you send me your /etc/rc.conf and /etc/sysctl.conf? I guess you br> > are still using ipv6_enable=YES on 9.X. br> br> Sure (attached). I'm not sure what is supposed to change in rc.conf br> when upgrading from 8 to 9. There's nothing obvious that I can br> see... maybe I'm looking in the wrong place? br> br> http://www.freebsd.org/releases/9.0R/relnotes.html Thank you. It is explained in section 3.2.4 in http://www.freebsd.org/releases/9.0R/relnotes-detailed.html#UPGRADE I think it will work as 8.X just after removing the ipv6_enable=YES line in your rc.conf, but after investigating the network.subr closely I found a bug in backward compatibility of ipv6_enable=YES on 9.X... Can you try the attached patch? This should fix the issue even if ipv6_enable=YES exists on a 9.X's rc.conf without a patch to rc.d/rtadvd. -- Hiroki ----Next_Part(Sat_Oct_27_16_51_29_2012_951)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="network.subr.20121027-1.diff" Index: etc/network.subr =================================================================== --- etc/network.subr (revision 242172) +++ etc/network.subr (working copy) @@ -504,7 +504,11 @@ # backward compatibility: $ipv6_enable case $ipv6_enable in [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) - return 0 + if checkyesno ipv6_gateway_enable; then + return 1 + else + return 0 + fi ;; esac ----Next_Part(Sat_Oct_27_16_51_29_2012_951)---- ----Security_Multipart0(Sat_Oct_27_16_51_29_2012_211)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAlCLkoEACgkQTyzT2CeTzy2P1wCgtoaCTtEG7mwmoMJabvvxPzbP NhUAnRDMBsiEa8uQGshlZwTv4pVMgGEv =QYFL -----END PGP SIGNATURE----- ----Security_Multipart0(Sat_Oct_27_16_51_29_2012_211)----