Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 08:37:09 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242074 - head/etc/rc.d
Message-ID:  <201210250837.q9P8b9ur012402@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brian
Date: Thu Oct 25 08:37:08 2012
New Revision: 242074
URL: http://svn.freebsd.org/changeset/base/242074

Log:
  Enable "accept_rtadvd" on interfaces running rtadvd.
  
  Without this, rtadvd runs but never advertises a default (IPv6) route.
  
  MFC after:	1 week

Modified:
  head/etc/rc.d/rtadvd

Modified: head/etc/rc.d/rtadvd
==============================================================================
--- head/etc/rc.d/rtadvd	Thu Oct 25 05:22:25 2012	(r242073)
+++ head/etc/rc.d/rtadvd	Thu Oct 25 08:37:08 2012	(r242074)
@@ -36,17 +36,24 @@ rtadvd_precmd()
 	#
 	case ${rtadvd_interfaces} in
 	[Aa][Uu][Tt][Oo]|'')
+		command_args=
 		for i in `list_net_interfaces`; do
 			case $i in
 			lo0)	continue ;;
 			esac
 			if ipv6if $i; then
-				rtadvd_interfaces="${rtadvd_interfaces} ${i}"
+				command_args="${command_args} ${i}"
 			fi
 		done
 		;;
+	*)
+		command_args="${rtadvd_interfaces}"
+		;;
 	esac
-	command_args="${rtadvd_interfaces}"
+
+	for iface in ${command_args}; do
+		ifconfig ${iface} inet6 -accept_rtadv
+	done
 
 	# Enable Router Renumbering, unicast case
 	# (use correct src/dst addr)



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