From 973cf09c3b311691d063a00f52be7e9b8bdec376 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Wed, 23 Jun 2004 21:36:55 +0000 Subject: [PATCH] Hotfix to problem with metric change reported by Luca. --- proto/rip/rip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 71758cc3..ad4fd957 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); }