Hotfix to problem with metric change reported by Luca.
This commit is contained in:
parent
3fe5f89907
commit
973cf09c3b
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue