Hotfix to problem with metric change reported by Luca.

This commit is contained in:
Ondrej Filip 2004-06-23 21:36:55 +00:00
parent 3fe5f89907
commit 973cf09c3b

View file

@ -267,7 +267,10 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new)
rte *old; rte *old;
old = rte_find(net, p); 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); rte_update(tab, net, p, new);
} }