Skip to content
Snippets Groups Projects
Commit 973cf09c authored by Ondřej Filip's avatar Ondřej Filip
Browse files

Hotfix to problem with metric change reported by Luca.

parent 3fe5f899
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment