summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2015-02-06 00:02:00 +0000
committerrpaulo <rpaulo@FreeBSD.org>2015-02-06 00:02:00 +0000
commit9d4b4e755677267acbc60c30b2379b76f774d1e3 (patch)
treee273db420baf373d84288f3a523ee1b2118b1e14 /etc/rc.d
parent4d53c4745ed8f77e81247f2434409c2269d9be61 (diff)
downloadFreeBSD-src-9d4b4e755677267acbc60c30b2379b76f774d1e3.zip
FreeBSD-src-9d4b4e755677267acbc60c30b2379b76f774d1e3.tar.gz
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
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/routing5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index b381471..7a3c1ab 100755
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -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=
OpenPOWER on IntegriCloud