]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in network LSA originating.
authorOndrej Filip <feela@network.cz>
Thu, 11 May 2000 17:14:57 +0000 (17:14 +0000)
committerOndrej Filip <feela@network.cz>
Thu, 11 May 2000 17:14:57 +0000 (17:14 +0000)
proto/ospf/topology.c

index f2a67e6c11df63c902085b185dfb806184f5538c..8f5dd0dd9f0ecfed32ee2d6c98c18ca2969555de 100644 (file)
@@ -244,6 +244,10 @@ originate_rt_lsa(struct ospf_area *oa, struct proto_ospf *po)
   en=lsa_install_new(&lsa, body, oa, &po->proto);
   oa->rt=en;
   flood_lsa(NULL,NULL,&oa->rt->lsa,po,NULL,oa);
+  {
+    struct ospf_lsa_rt *rt=body;
+    debug("Originated, size=%u, link=%u\n",lsa.length,rt->links);
+  }
 }
 
 void *
@@ -315,7 +319,7 @@ originate_net_lsa(struct ospf_iface *ifa, struct proto_ospf *po)
   }
   body=originate_net_lsa_body(ifa, &lsa.length, po);
   lsasum_calculate(&lsa,body,po);
-  en=lsa_install_new(&lsa, body, ifa->oa, &po->proto);
+  ifa->nlsa=lsa_install_new(&lsa, body, ifa->oa, &po->proto);
   flood_lsa(NULL,NULL,&ifa->nlsa->lsa,po,NULL,ifa->oa);
 }