From: Ondrej Filip Date: Mon, 5 Jun 2000 16:13:50 +0000 (+0000) Subject: I calculated next hop of parent instead of actual LSA. :-( X-Git-Tag: v1.2.0~645 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a5d7caa951d37c50d52ebef8ef269fa587dec5e;p=thirdparty%2Fbird.git I calculated next hop of parent instead of actual LSA. :-( --- diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index d5b4626f6..32aeed2cf 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -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;