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
This commit is contained in:
Rui Paulo 2015-02-06 00:02:00 +00:00
parent b20592de1b
commit a23f83b922
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278302

View File

@ -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=