On Tue, 8 Jan 2013 16:02:43 -0500 "J.R. Oldroyd" <[email protected]> wrote:
> Seems to me that the ip6addrctl script should also prefer IPv6 if any
> interface has IPv6 enabled using one of the ifconfig_(interface)_ipv6
> variables.
>
> -jr
>
A simple change along the lines of the attached patch, which also
prefers IPv6 if any i/f uses IPv6 autoconfig, will accomplish this.
-jr
--- ip6addrctl.orig 2013-01-04 00:07:03.000000000 -0500
+++ ip6addrctl 2013-01-08 16:28:53.000000000 -0500
@@ -62,7 +62,8 @@
ip6addrctl install "${config_file}"
checkyesno ip6addrctl_verbose && ip6addrctl
else
- if checkyesno ipv6_activate_all_interfaces; then
+ ipv6auto=`list_net_interfaces autoconf`
+ if [ -n "$ipv6auto" ] || checkyesno ipv6_activate_all_interfaces; then
ip6addrctl_prefer_ipv6
else
ip6addrctl_prefer_ipv4
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"