]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
I calculated next hop of parent instead of actual LSA. :-(
authorOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 16:13:50 +0000 (16:13 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 5 Jun 2000 16:13:50 +0000 (16:13 +0000)
proto/ospf/rt.c

index d5b4626f6b8ca5310ade0e165e26ecfbaec47d7c..32aeed2cffe5f04c5f54ab3106dbd26a59a55c62 100644 (file)
@@ -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);
     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);
       DBG("     Next hop calculated: %I.\n", nn->addr);
       en->nh=nn->addr;