]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Removed some useless (hope!) code in next hop calculation.
authorOndrej Filip <feela@network.cz>
Tue, 21 Aug 2001 17:00:15 +0000 (17:00 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 21 Aug 2001 17:00:15 +0000 (17:00 +0000)
proto/ospf/rt.c

index 366f9e55638d2714c8542f7a1f54f67db454114f..8a6990e23b1556c6a75c3d3a2d4e2e3bade883b2 100644 (file)
@@ -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;