Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2023 12:11:27 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e8deaa3c6b8b - stable/13 - rc.d/routing: Correct setting default gateway for each FIB
Message-ID:  <202308301211.37UCBRbL026510@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5

commit e8deaa3c6b8b98f435a07b47aaf3c546e7e876d5
Author:     Andrew Fengler <andrew.fengler@scaleengine.com>
AuthorDate: 2023-06-26 18:40:21 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-08-30 12:06:51 +0000

    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)
---
 libexec/rc/rc.d/routing | 6 +++---
 1 file 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308301211.37UCBRbL026510>