summaryrefslogtreecommitdiff
path: root/proto/ospf/topology.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-02-25 14:26:54 +0000
committerOndrej Filip <feela@network.cz>2000-02-25 14:26:54 +0000
commitb786df7035f43bb5eb4f7bca980e3bf684e527b7 (patch)
tree990b3733af3e963f05f682bfb491c5bb0036e16a /proto/ospf/topology.c
parent2d496d2028e1283384f1c9d243f96eb59c42297e (diff)
Memory allocation in ospf_area changed.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 60dbd4f9..7de749de 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -46,10 +46,11 @@ addifa_rtlsa(struct ospf_iface *ifa)
{
po->areano++;
oa=po->firstarea;
- po->firstarea=sl_alloc(po->areaslab);
+ po->firstarea=mb_alloc(po->proto.pool, sizeof(struct ospf_area));
po->firstarea->next=oa;
po->firstarea->areaid=ifa->area;
po->firstarea->gr=ospf_top_new(po);
+ DBG("%s: New OSPF area \"%d\" added.\n", po->proto.name, ifa->area);
}
/* FIXME Go on, change router lsa, bits and so on... */