As stated in /etc/defaults/rc.conf... ### IPv6 options: ### ipv6_network_interfaces="auto" # List of IPv6 network interfaces # (or "auto" or "none"). So, the only accepted values are auto and none. This doesn't make sense though when used in routing_stop_inet6 though: routing_stop_inet6() { local i route -n flush -inet6 for i in ${ipv6_network_interfaces}; do ifconfig $i inet6 -defaultif done } Currently it's cosmetic noise, for the most part, but this also doesn't remove the default interface value either properly.
Responsible Changed From-To: freebsd-bugs->freebsd-rc Perhaps the users on this list can comment.
This patch fixes the problem. Thanks, -Garrett
Fixed on ^/head - ^/stable/10: 230991 hrs for i in `list_net_interfaces`; do 230991 hrs if ipv6if $i; then 230991 hrs ifconfig $i inet6 -defaultif 230991 hrs fi 197139 hrs done but not ^/stable/9: 197139 hrs for i in ${ipv6_network_interfaces}; do 197139 hrs ifconfig $i inet6 -defaultif 197139 hrs done $ svn log -c 230991 ------------------------------------------------------------------------ r230991 | hrs | 2012-02-04 10:14:49 -0800 (Sat, 04 Feb 2012) | 5 lines Fix $ipv6_network_interfaces handling in rc.d/routing. It could fail when it was set to "auto", for example. MFC after: 3 days I don't think it's worth pursuing on ^/stable/9 though, given that it's EOL.