The branch stable/13 has been updated by ae:

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

commit 699ed29c4fd8eec3bbf4883bbca7a6e6f4a0fe12
Author:     Andrey V. Elsukov <a...@freebsd.org>
AuthorDate: 2025-02-28 14:05:47 +0000
Commit:     Andrey V. Elsukov <a...@freebsd.org>
CommitDate: 2025-03-07 09:56:14 +0000

    routing: set net.route.multipath=0 when kernel doesn't have ROUTE_MPATH
    
    (cherry picked from commit f2644d64b40f611fd4d4f66069ad8d6cf33f69df)
---
 sys/net/route/route_ctl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
index fd09998d4a01..712e912189a5 100644
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -106,10 +106,11 @@ SYSCTL_DECL(_net_route);
 #define        V_rib_route_multipath   VNET(rib_route_multipath)
 #ifdef ROUTE_MPATH
 #define _MP_FLAGS      CTLFLAG_RW
+VNET_DEFINE(u_int, rib_route_multipath) = 1;
 #else
 #define _MP_FLAGS      CTLFLAG_RD
+VNET_DEFINE(u_int, rib_route_multipath) = 0;
 #endif
-VNET_DEFINE(u_int, rib_route_multipath) = 1;
 SYSCTL_UINT(_net_route, OID_AUTO, multipath, _MP_FLAGS | CTLFLAG_VNET,
     &VNET_NAME(rib_route_multipath), 0, "Enable route multipath");
 #undef _MP_FLAGS

Reply via email to