From: James Lu Date: Tue, 29 Dec 2020 01:23:54 +0000 (+0100) Subject: Nest: Read Babel metric as IGP metric X-Git-Tag: v2.0.8~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455c13dc9971ae4aa701135b5c1709d61477bdec;p=thirdparty%2Fbird.git Nest: Read Babel metric as IGP metric (Minor syntactic changes by committer) --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 23cbe0f91..298320d91 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;