summaryrefslogtreecommitdiff
path: root/sysdep/linux/krt-sys.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-09-15 14:59:06 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-09-15 14:59:06 +0200
commit4adcb9df1bf551cc5fd1145c09af1843fdc4fe85 (patch)
tree569aa0d159e63ea73b40a041300079f81538b34b /sysdep/linux/krt-sys.h
parent2feaa6931bfe39eba696b33b0c8aac13d313b223 (diff)
KRT: Add kernel metric protocol option
Kernel routes with different metrics do not clash with each other, therefore using dedicated metric value is a reliable way to avoid overwriting routes from other sources (e.g. kernel device routes). Although kernel route metric could already be set as a route attribute by filters, that is not consistent with the way how Linux kernel handles route metric - not just a route attribute, but a part of a route key.
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 076870f5..96688e34 100644
--- a/sysdep/linux/krt-sys.h
+++ b/sysdep/linux/krt-sys.h
@@ -88,6 +88,7 @@ static inline struct ifa * kif_get_primary_ip(struct iface *i) { return NULL; }
struct krt_params {
u32 table_id; /* Kernel table ID we sync with */
+ u32 metric; /* Kernel metric used for all routes */
};
struct krt_state {