list iface_list; /* Interfaces we really use */
int areano; /* Number of area I belong to */
struct ospf_area *firstarea;
- slab *areaslab;
};
static int ospf_start(struct proto *p);
{
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... */