summaryrefslogtreecommitdiff
path: root/proto/rip
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/rip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index f2e56e93..2653b23b 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -1098,6 +1098,11 @@ rip_rte_same(struct rte *new, struct rte *old)
(new->u.rip.from == old->u.rip.from));
}
+static u32
+rip_rte_igp_metric(struct rte *rt)
+{
+ return rt->u.rip.metric;
+}
static void
rip_postconfig(struct proto_config *CF)
@@ -1124,6 +1129,7 @@ rip_init(struct proto_config *CF)
P->store_tmp_attrs = rip_store_tmp_attrs;
P->rte_better = rip_rte_better;
P->rte_same = rip_rte_same;
+ P->rte_igp_metric = rip_rte_igp_metric;
return P;
}