mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
routing: set net.route.multipath=0 when kernel doesn't have ROUTE_MPATH
MFC after: 1 week
This commit is contained in:
parent
ae2b84d9ab
commit
f2644d64b4
1 changed files with 2 additions and 1 deletions
|
|
@ -109,10 +109,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue