Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 16:32:31 -0500
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: /etc/rc.d/ip6addrctl
Message-ID:  <20130108163231.124890ab@shibato>
In-Reply-To: <20130108160243.74a93ab8@shibato>
References:  <20130108151837.GF35868@acme.spoerlein.net> <20130108180920.GJ36633@rugsucker.smi.sendmail.com> <20130108184609.GJ35868@acme.spoerlein.net> <20130108160243.74a93ab8@shibato>

next in thread | previous in thread | raw e-mail | index | archive | help
--MP_/gi4pbmtXP7y7TH987IJRQp2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Tue, 8 Jan 2013 16:02:43 -0500 "J.R. Oldroyd" <fbsd@opal.com> 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

--MP_/gi4pbmtXP7y7TH987IJRQp2
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=ip6addrctl.diff

--- 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

--MP_/gi4pbmtXP7y7TH987IJRQp2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130108163231.124890ab>