Date: Sun, 07 Mar 2010 18:02:15 -0800 From: Doug Barton <dougb@FreeBSD.org> To: freebsd-net@freebsd.org, freebsd-rc@FreeBSD.org Subject: Un-obsolete'ing ipv6_enable Message-ID: <4B945AA7.6070000@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080009000605050204070406 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit As we've previously discussed, I would like to un-obsolete ipv6_enable, and return it to the status of being the knob that actually controls whether or not we configure IPv6. My understanding is that the consensus is in agreement with this change, however I'm posting my proposed patch (minus the rc.conf(5) change) just in case. If you have any objection, please speak up sooner rather than later. Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ --------------080009000605050204070406 Content-Type: text/plain; name="v6-prefer-diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="v6-prefer-diff" Index: network.subr =================================================================== --- network.subr (revision 204851) +++ network.subr (working copy) @@ -100,18 +100,12 @@ _ipv6_opts="-accept_rtadv" fi else - if checkyesno ipv6_prefer; then + if checkyesno ipv6_enable; then _ipv6_opts="-ifdisabled" + _ipv6_opts="${_ipv6_opts} accept_rtadv" else _ipv6_opts="ifdisabled" fi - - # backward compatibility: $ipv6_enable - case $ipv6_enable in - [Yy][Ee][Ss]) - _ipv6_opts="${_ipv6_opts} accept_rtadv" - ;; - esac fi if [ -n "${_ipv6_opts}" ]; then Index: rc.d/netif =================================================================== --- rc.d/netif (revision 204851) +++ rc.d/netif (working copy) @@ -41,8 +41,6 @@ extra_commands="cloneup clonedown" cmdifn= -set_rcvar_obsolete ipv6_enable ipv6_prefer - network_start() { # Set the list of interfaces to work on. Index: rc.d/ip6addrctl =================================================================== --- rc.d/ip6addrctl (revision 204851) +++ rc.d/ip6addrctl (working copy) @@ -20,8 +20,6 @@ prefer_ipv6_cmd="ip6addrctl_prefer_ipv6" prefer_ipv4_cmd="ip6addrctl_prefer_ipv4" -set_rcvar_obsolete ipv6_enable ipv6_prefer - ip6addrctl_prefer_ipv6() { afexists inet6 || return 0 Index: defaults/rc.conf =================================================================== --- defaults/rc.conf (revision 204851) +++ defaults/rc.conf (working copy) @@ -439,6 +439,7 @@ icmp_bmcastecho="NO" # respond to broadcast ping packets ### IPv6 options: ### +ipv6_enable="NO" # Set to YES to enable IPv6 configuration. ipv6_network_interfaces="none" # List of IPv6 network interfaces # (or "auto" or "none"). ipv6_defaultrouter="NO" # Set to IPv6 default gateway (or NO). --------------080009000605050204070406--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B945AA7.6070000>