From 4adcb9df1bf551cc5fd1145c09af1843fdc4fe85 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 15 Sep 2016 14:59:06 +0200 Subject: 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. --- sysdep/linux/krt-sys.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdep/linux/krt-sys.h') 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 { -- cgit v1.2.3