Allow different instances of the same protocol with identical preferences.
This commit is contained in:
parent
4ba84ebc82
commit
739ebd8e82
1 changed files with 2 additions and 5 deletions
|
@ -106,11 +106,8 @@ rte_better(rte *new, rte *old)
|
||||||
return 1;
|
return 1;
|
||||||
if (new->pref < old->pref)
|
if (new->pref < old->pref)
|
||||||
return 0;
|
return 0;
|
||||||
if (new->attrs->proto != old->attrs->proto)
|
if (new->attrs->proto->proto != old->attrs->proto->proto)
|
||||||
{
|
bug("Different protocols, but identical preferences => oops"); /* FIXME */
|
||||||
/* FIXME!!! */
|
|
||||||
bug("Different protocols, but identical preferences => oops");
|
|
||||||
}
|
|
||||||
if (better = new->attrs->proto->rte_better)
|
if (better = new->attrs->proto->rte_better)
|
||||||
return better(new, old);
|
return better(new, old);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue