Skip to content

Commit 699ed29

Browse files
committed
routing: set net.route.multipath=0 when kernel doesn't have ROUTE_MPATH
(cherry picked from commit f2644d6)
1 parent d201175 commit 699ed29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sys/net/route/route_ctl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ SYSCTL_DECL(_net_route);
106106
#define V_rib_route_multipath VNET(rib_route_multipath)
107107
#ifdef ROUTE_MPATH
108108
#define _MP_FLAGS CTLFLAG_RW
109+
VNET_DEFINE(u_int, rib_route_multipath) = 1;
109110
#else
110111
#define _MP_FLAGS CTLFLAG_RD
112+
VNET_DEFINE(u_int, rib_route_multipath) = 0;
111113
#endif
112-
VNET_DEFINE(u_int, rib_route_multipath) = 1;
113114
SYSCTL_UINT(_net_route, OID_AUTO, multipath, _MP_FLAGS | CTLFLAG_VNET,
114115
&VNET_NAME(rib_route_multipath), 0, "Enable route multipath");
115116
#undef _MP_FLAGS

0 commit comments

Comments
 (0)