summaryrefslogtreecommitdiff
path: root/sysdep/linux/krt-sys.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-09-19 12:29:56 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-09-19 12:29:56 +0200
commit6e75d0d27fe85f12a22928e5729465823704281e (patch)
tree4813d2bd3507439e27f566b29ebd10ed46afa2a6 /sysdep/linux/krt-sys.h
parent292f7858e60b0dffd8c06f6818d90ccf3b34e0b2 (diff)
KRT: Add krt_scope attribute
Add a new route attribute, krt_scope, to expose the Linux kernel route scope. Constants from /etc/iproute2/rt_scopes (prefixed by "ips_") are expected to be used with the attribute. Both import and export are supported. Also, the patch fixes device route export to the kernel, by setting link scope automatically.
Diffstat (limited to 'sysdep/linux/krt-sys.h')
-rw-r--r--sysdep/linux/krt-sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdep/linux/krt-sys.h b/sysdep/linux/krt-sys.h
index 96688e34..6d6586d1 100644
--- a/sysdep/linux/krt-sys.h
+++ b/sysdep/linux/krt-sys.h
@@ -36,6 +36,7 @@ static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; }
#define EA_KRT_PREFSRC EA_CODE(EAP_KRT, 0x10)
#define EA_KRT_REALM EA_CODE(EAP_KRT, 0x11)
+#define EA_KRT_SCOPE EA_CODE(EAP_KRT, 0x12)
#define KRT_METRICS_MAX 0x10 /* RTAX_QUICKACK+1 */