From a23f83b922cc30bb5bb5582641e4465f46cd3e84 Mon Sep 17 00:00:00 2001 From: Rui Paulo Date: Fri, 6 Feb 2015 00:02:00 +0000 Subject: [PATCH] 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 --- etc/rc.d/routing | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/routing b/etc/rc.d/routing index b38147153b0a..7a3c1ab4c2e7 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=