svn commit: r278302 - head/etc/rc.d
Rui Paulo
rpaulo at FreeBSD.org
Fri Feb 6 00:02:01 UTC 2015
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=
More information about the svn-src-head
mailing list