Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2012 18:14:49 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230991 - head/etc/rc.d
Message-ID:  <201202041814.q14IEnnt046441@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Feb  4 18:14:49 2012
New Revision: 230991
URL: http://svn.freebsd.org/changeset/base/230991

Log:
  Fix $ipv6_network_interfaces handling in rc.d/routing.  It could fail when
  it was set to "auto", for example.
  
  MFC after:	3 days

Modified:
  head/etc/rc.d/routing

Modified: head/etc/rc.d/routing
==============================================================================
--- head/etc/rc.d/routing	Sat Feb  4 18:14:39 2012	(r230990)
+++ head/etc/rc.d/routing	Sat Feb  4 18:14:49 2012	(r230991)
@@ -98,8 +98,10 @@ routing_stop_inet6()
 	local i
 
 	route -n flush -inet6
-	for i in ${ipv6_network_interfaces}; do
-		ifconfig $i inet6 -defaultif
+	for i in `list_net_interfaces`; do
+		if ipv6if $i; then
+			ifconfig $i inet6 -defaultif
+		fi
 	done
 }
 



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