summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r--proto/rip/rip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 71758cc..ad4fd95 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -267,7 +267,10 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new)
rte *old;
old = rte_find(net, p);
- if (!old || p->rte_better(new, old))
+ if (!old || p->rte_better(new, old) ||
+ (ipa_equal(old->attrs->from, new->attrs->from) &&
+ (old->u.rip.metric != new->u.rip.metric)) )
+
rte_update(tab, net, p, new);
}