Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2015 00:02:01 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278302 - head/etc/rc.d
Message-ID:  <201502060002.t16021kY037316@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Fri Feb  6 00:02:00 2015
New Revision: 278302
URL: https://svnweb.freebsd.org/changeset/base/278302

Log:
  Don't add static IPv6 routes when to all FIBs when net.add_addr_allfibs is 0.
  
  This avoids a bunch of boot time warnings when rc.d/routing runs.
  
  MFC after:	1 week

Modified:
  head/etc/rc.d/routing

Modified: head/etc/rc.d/routing
==============================================================================
--- head/etc/rc.d/routing	Thu Feb  5 23:02:43 2015	(r278301)
+++ head/etc/rc.d/routing	Fri Feb  6 00:02:00 2015	(r278302)
@@ -165,13 +165,14 @@ static_inet()
 
 static_inet6()
 {
-	local _action _if _skip fibmod fibs
+	local _action _if _skip fibmod fibs allfibs
 	_action=$1
 	_if=$2
 
 	# get the number of FIBs supported.
 	fibs=$((`${SYSCTL_N} net.fibs` - 1))
-	if [ "$fibs" -gt 0 ]; then
+	allfibs=`${SYSCTL_N} net.add_addr_allfibs`
+	if [ "$fibs" -gt 0 ] && [ "$allfibs" -ne 0 ]; then
 		fibmod="-fib 0-$fibs"
 	else
 		fibmod=



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