From 455c13dc9971ae4aa701135b5c1709d61477bdec Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 29 Dec 2020 02:23:54 +0100 Subject: [PATCH] Nest: Read Babel metric as IGP metric (Minor syntactic changes by committer) --- nest/rt-table.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nest/rt-table.c b/nest/rt-table.c index 23cbe0f9..298320d9 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2878,6 +2878,11 @@ rt_get_igp_metric(rte *rt) } #endif +#ifdef CONFIG_BABEL + if (a->source == RTS_BABEL) + return rt->u.babel.metric; +#endif + if (a->source == RTS_DEVICE) return 0;