diff options
author | James Lu <james@overdrivenetworks.com> | 2020-12-29 02:23:54 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-12-29 02:25:21 +0100 |
commit | 455c13dc9971ae4aa701135b5c1709d61477bdec (patch) | |
tree | 230b5491760ebaceddfbd819eb29a229e5041214 /nest | |
parent | ea3c6c1a15ce9b93f583f96919c70f7a2fd34e98 (diff) |
Nest: Read Babel metric as IGP metric
(Minor syntactic changes by committer)
Diffstat (limited to 'nest')
-rw-r--r-- | nest/rt-table.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |