mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
I calculated next hop of parent instead of actual LSA. :-(
This commit is contained in:
parent
07b7100292
commit
2a5d7caa95
@ -557,7 +557,7 @@ calc_next_hop(struct top_hash_entry *par, struct top_hash_entry *en,
|
|||||||
DBG(" Next hop calculating for id: %I rt: %I type: %u\n",en->lsa.id,en->lsa.rt,en->lsa.type);
|
DBG(" Next hop calculating for id: %I rt: %I type: %u\n",en->lsa.id,en->lsa.rt,en->lsa.type);
|
||||||
if(par->lsa.type!=LSA_T_RT)
|
if(par->lsa.type!=LSA_T_RT)
|
||||||
{
|
{
|
||||||
if((neigh=find_neigh_noifa(po,par->lsa.rt))==NULL) return;
|
if((neigh=find_neigh_noifa(po,en->lsa.rt))==NULL) return;
|
||||||
nn=neigh_find(p,&neigh->ip,0);
|
nn=neigh_find(p,&neigh->ip,0);
|
||||||
DBG(" Next hop calculated: %I.\n", nn->addr);
|
DBG(" Next hop calculated: %I.\n", nn->addr);
|
||||||
en->nh=nn->addr;
|
en->nh=nn->addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user