From owner-freebsd-rc@FreeBSD.ORG Mon Oct 5 20:03:52 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E5311065672; Mon, 5 Oct 2009 20:03:52 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 399D58FC19; Mon, 5 Oct 2009 20:03:51 +0000 (UTC) Received: from delta.allbsd.org (p4206-ipbf1902funabasi.chiba.ocn.ne.jp [114.146.107.206]) (authenticated bits=128) by mail.allbsd.org (8.14.3/8.14.3) with ESMTP id n95K3WP5085097; Tue, 6 Oct 2009 05:03:43 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (alph.allbsd.org [192.168.0.10]) (authenticated bits=0) by delta.allbsd.org (8.13.4/8.13.4) with ESMTP id n95K3MT3071002; Tue, 6 Oct 2009 05:03:25 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 06 Oct 2009 04:50:43 +0900 (JST) Message-Id: <20091006.045043.187164797.hrs@allbsd.org> To: des@des.no From: Hiroki Sato In-Reply-To: <86my45vhlj.fsf@ds4.des.no> References: <20091005055806.GB58246@zibbi.meraka.csir.co.za> <20091005.182342.167950100.hrs@allbsd.org> <86my45vhlj.fsf@ds4.des.no> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.2.52 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Oct__6_04_50_43_2009_396)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.2 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Tue, 06 Oct 2009 05:03:44 +0900 (JST) Cc: freebsd-current@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: nd6 change and rc.d/network_ipv6 -> rc.d/netif integration X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2009 20:03:52 -0000 ----Security_Multipart(Tue_Oct__6_04_50_43_2009_396)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Dag-Erling Sm=F8rgrav wrote in <86my45vhlj.fsf@ds4.des.no>: de> Hiroki Sato writes: de> > John Hay writes: de> > > Is there a good reason why we still ship with ipv6 off by defau= lt? de> > What do you mean by "off by default"? I think IPv6 is not disabl= ed by de> > default with the patch. de> = de> % ident /usr/src/etc/defaults/rc.conf = de> /usr/src/etc/defaults/rc.conf: de> $FreeBSD: head/etc/defaults/rc.conf 197619 2009-09-29 16:49:10= Z dougb $ de> % grep ipv6_network_interfaces /usr/src/etc/defaults/rc.conf de> ipv6_network_interfaces=3D"none" # List of IPv6 network interfaces de> #ipv6_network_interfaces=3D"ed0 ep0" # Examples for router de> % grep ipv6_prefer /usr/src/etc/defaults/rc.conf = de> ipv6_prefer=3D"NO" # Use IPv6 when both IPv4 and IPv6 can be used de> = de> Does mean that IPv6 is disabled by default? Who knows? There is n= o de> coherent explanation *anywhere* of what these variables mean, and de> rc.conf(5) does not mention them at all. In fact, the first hit fo= r de> "ipv6" in rc.conf(5) is this: de> = de> ipv6_enable de> (bool) Enable support for IPv6 networking. Note t= hat this de> requires that the kernel has been compiled with op= tions de> INET6. No, the rc.conf(5) has been updated in r197526: ipv6_enable (bool) If the variable is ``YES'', ``inet6 accept_rtad= v'' is added to all of ifconfig__ipv6 and the ipv6= _prefer is defined as ``YES''. This variable is deprecated. Use ipv6_prefer and ifconfig__ipv6. and UPDATING also explains the relationship between the $ipv6_enable and the other variables. IMHO "Enabling (or disabling) IPv6" is not a correct expression for $ipv6_enable and $ipv6_prefer. If you use a kernel with "options INET6" (GENERIC has it) IPv6 is enabled, and $ipv6_enable=3DNO in the old releases does not disable the functionality. It just controlled whether $ipv6_* in rc.conf are ignored or not. -- Hiroki ----Security_Multipart(Tue_Oct__6_04_50_43_2009_396)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkrKThMACgkQTyzT2CeTzy29fwCeM8VpJjt2YI1voNdec3kHVlGS AecAmgI52ETW3Q/PDEQW1h7FsZRkENfc =gvTH -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Oct__6_04_50_43_2009_396)----