summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2001-08-21 19:00:15 +0200
committerOndrej Filip <feela@network.cz>2001-08-21 19:00:15 +0200
commit8e32493c56a49f10a6949985d5b0bb4dbcbe204d (patch)
tree5294bc9c0c97c4556d0f77bb4724f6d81e60d5f3 /proto
parent68db89a2ce35a96aef827f4e86c5dfd82842f9d7 (diff)
downloadbird-8e32493c56a49f10a6949985d5b0bb4dbcbe204d.tar
bird-8e32493c56a49f10a6949985d5b0bb4dbcbe204d.zip
Removed some useless (hope!) code in next hop calculation.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/rt.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 366f9e5..8a6990e 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -654,25 +654,7 @@ calc_next_hop(struct top_hash_entry *en, struct top_hash_entry *par,
}
else /* Parent is some RT neighbor */
{
- /* FIXME: I should probably hold ospf_iface in top_hash_entry */
- /* FIXME: Isn't this useless */
- neigh=NULL;
- WALK_LIST(ifa,po->iface_list)
- {
- if(ifa->iface==par->nhi)
- {
- if((neigh=find_neigh(ifa,par->lsa.rt))==NULL) return;
- break;
- }
- }
- if(neigh==NULL) bug("I cannot find my neighbor.");
- nn=neigh_find(p,&neigh->ip,0);
- if(nn)
- {
- en->nhi=nn->iface;
- en->nh=neigh->ip;
- }
- return;
+ bug("Router parent does not have next hop."); /* Hope this will never happen */
}
}
en->nh=par->nh;