diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2015-02-06 00:02:00 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2015-02-06 00:02:00 +0000 |
commit | 9d4b4e755677267acbc60c30b2379b76f774d1e3 (patch) | |
tree | e273db420baf373d84288f3a523ee1b2118b1e14 /etc/rc.d/routing | |
parent | 4d53c4745ed8f77e81247f2434409c2269d9be61 (diff) | |
download | FreeBSD-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/routing')
-rwxr-xr-x | etc/rc.d/routing | 5 |
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= |