summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-26 22:38:02 +0100
committerMartin Mares <mj@ucw.cz>1999-03-26 22:38:02 +0100
commit739ebd8e82b090ed91b3ebe77509ecd6784eca9a (patch)
treed83e8bb3a13a85d92a76db0b93f4d120cac2f073 /nest
parent4ba84ebc8285c3a5c556fc769101cc29cb3d3708 (diff)
downloadbird-739ebd8e82b090ed91b3ebe77509ecd6784eca9a.tar
bird-739ebd8e82b090ed91b3ebe77509ecd6784eca9a.zip
Allow different instances of the same protocol with identical preferences.
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-table.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 584c434..e84937a 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -106,11 +106,8 @@ rte_better(rte *new, rte *old)
return 1;
if (new->pref < old->pref)
return 0;
- if (new->attrs->proto != old->attrs->proto)
- {
- /* FIXME!!! */
- bug("Different protocols, but identical preferences => oops");
- }
+ if (new->attrs->proto->proto != old->attrs->proto->proto)
+ bug("Different protocols, but identical preferences => oops"); /* FIXME */
if (better = new->attrs->proto->rte_better)
return better(new, old);
return 0;