diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-08-30 12:43:46 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-08-30 12:43:46 +0200 |
commit | f9f2e280ea4fa1af19d8ce9e54abeb495694c0d5 (patch) | |
tree | 414ba7e802a16c5d33519f6e1f54891880771413 /sysdep/linux/krt-sys.h | |
parent | 768d013267bd2a52bab70ba6d413f49365fb31e3 (diff) |
KRT: Forbid path merging on BSD
We support ECMP routes only on Linux. Exported routes are checked in
krt_capable(), but a route generated during path merging avoids this
check.
Diffstat (limited to 'sysdep/linux/krt-sys.h')
-rw-r--r-- | sysdep/linux/krt-sys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/linux/krt-sys.h b/sysdep/linux/krt-sys.h index 7fd5f139..076870f5 100644 --- a/sysdep/linux/krt-sys.h +++ b/sysdep/linux/krt-sys.h @@ -32,6 +32,8 @@ static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; } /* Kernel routes */ +#define KRT_ALLOW_MERGE_PATHS 1 + #define EA_KRT_PREFSRC EA_CODE(EAP_KRT, 0x10) #define EA_KRT_REALM EA_CODE(EAP_KRT, 0x11) |