aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Fengler <andrew.fengler@scaleengine.com>2023-06-26 18:40:21 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2023-08-30 12:06:51 +0000
commite8deaa3c6b8b98f435a07b47aaf3c546e7e876d5 (patch)
tree3d76ae8a433b047391c491416751521ad19227b0
parent96c4b704ec169044aa98867965e046a4728bcba1 (diff)
downloadsrc-e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5.tar.gz
src-e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5.zip
rc.d/routing: Correct setting default gateway for each FIB
There was a mistake in the previous commit, it used the incorrect spelling of the FIB variable name and was not functional Also corrects an issue with the IPv6 default route variable name. Fixes: 30659d1dcbcc ("Add support for adding default routes for other FIBs") Sponsored-by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D37685 (cherry picked from commit f81be7a8318b178e406c12d98f78cfa2a4229af7)
-rwxr-xr-xlibexec/rc/rc.d/routing6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rc/rc.d/routing b/libexec/rc/rc.d/routing
index ae1aa18973db..9b906f69b354 100755
--- a/libexec/rc/rc.d/routing
+++ b/libexec/rc/rc.d/routing
@@ -170,7 +170,7 @@ static_inet()
;;
*)
static_routes="${static_routes} _default_fib${_fibnum}"
- eval route__default_fib${fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
+ eval route__default_fib${_fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
;;
esac
done
@@ -246,8 +246,8 @@ static_inet6()
[Nn][Oo] | '')
;;
*)
- ipv6_static_routes="${static_routes} _default_fib${_fibnum}"
- eval ipv6_route__default_fib${fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
+ ipv6_static_routes="${ipv6_static_routes} _default_fib${_fibnum}"
+ eval ipv6_route__default_fib${_fibnum}="'default ${_fib_gw} -fib ${_fibnum}'"
;;
esac
done