mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Hotfix to problem with metric change reported by Luca.
This commit is contained in:
parent
3fe5f89907
commit
973cf09c3b
@ -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 New Issue
Block a user