]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.
authorHiroki Sato <hrs@FreeBSD.org>
Mon, 13 Sep 2010 19:55:40 +0000 (19:55 +0000)
committerHiroki Sato <hrs@FreeBSD.org>
Mon, 13 Sep 2010 19:55:40 +0000 (19:55 +0000)
commitd3a8a8b9fa8d418ef26b4101b6bacd77b4e647dd
tree56f941df7e485c288db2471ec30c321abcef95f6
parent95f15c1589eee6e4b8147e21f3cde2264b00c55a
Split $ipv6_prefer into $ip6addrctl_policy and $ipv6_activate_all_interfaces.

The $ip6addrctl_policy is a variable to choose a pre-defined address
selection policy set by ip6addrctl(8).
The keyword "ipv4_prefer" sets IPv4-preferred one described in Section 10.3,
the keyword "ipv6_prefer" sets IPv6-preferred one in Section 2.1 in RFC 3484,
respectively.  When "AUTO" is specified, it attempts to read
/etc/ip6addrctl.conf first.  If it is found, it reads and installs it as
a policy table.  If not, either of the two pre-defined policy tables is
chosen automatically according to $ipv6_activate_all_interfaces.

When $ipv6_activate_all_interfaces=NO, interfaces which have no corresponding
$ifconfig_IF_ipv6 is marked as IFDISABLED for security reason.

The default values are ip6addrctl_policy=AUTO and
ipv6_activate_all_interfaces=NO.

Discussed with: ume and bz
UPDATING
etc/defaults/rc.conf
etc/network.subr
etc/rc.d/ip6addrctl
etc/rc.d/netif
share/man/man5/rc.conf.5