0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Removed some useless (hope!) code in next hop calculation.

This commit is contained in:
Ondrej Filip 2001-08-21 17:00:15 +00:00
parent 68db89a2ce
commit 8e32493c56

View File

@ -654,25 +654,7 @@ calc_next_hop(struct top_hash_entry *en, struct top_hash_entry *par,
} }
else /* Parent is some RT neighbor */ else /* Parent is some RT neighbor */
{ {
/* FIXME: I should probably hold ospf_iface in top_hash_entry */ bug("Router parent does not have next hop."); /* Hope this will never happen */
/* 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;
} }
} }
en->nh=par->nh; en->nh=par->nh;