summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-11 19:14:57 +0200
committerOndrej Filip <feela@network.cz>2000-05-11 19:14:57 +0200
commit7a42e6ce899ceec7329212b9ceca4f15387fc280 (patch)
tree9671dadf2935d16cb4efdd9dbf51c0790a157d1a /proto/ospf
parent67edcf392f74e1c79ea521d583df7ca365caea0b (diff)
downloadbird-7a42e6ce899ceec7329212b9ceca4f15387fc280.tar
bird-7a42e6ce899ceec7329212b9ceca4f15387fc280.zip
Bugfix in network LSA originating.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/topology.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index f2a67e6..8f5dd0d 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -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);
}