diff options
author | Ondrej Filip <feela@network.cz> | 2000-04-03 22:31:07 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-04-03 22:31:07 +0000 |
commit | 8496b2e41a81f8281da0e0c3e4bbb72a57d3bf21 (patch) | |
tree | cfd9083a1d32d7c77fd7e26a8eb83c84322ec9ea /proto/ospf/ospf.c | |
parent | 394acced118df7360e480920c65ca260c5b8c44f (diff) |
Minor change in area list. Now I use MJ's lists.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r-- | proto/ospf/ospf.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 670ca735..a806de69 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -16,15 +16,6 @@ ospf_start(struct proto *p) p->if_notify=ospf_if_notify; - /* Create graph of LSA's */ - po->areano=1; /* FIXME should respect config! */ - po->firstarea=(struct ospf_area *)cfg_alloc(sizeof(struct ospf_area)); - po->firstarea->gr=ospf_top_new(po); - po->firstarea->next=NULL; - po->firstarea->areaid=0; - - po->areano=0; /* Waiting for interfaces comming up */ - po->firstarea=NULL; return PS_UP; } @@ -52,14 +43,12 @@ ospf_dump(struct proto *p) } } - oa=po->firstarea; - while(oa!=NULL) + WALK_LIST(NODE oa,po->area_list) { debug("\n%s: LSA graph dump for area \"%d\" start:\n", p->name,oa->areaid); ospf_top_dump(oa->gr); debug("%s: LSA graph dump for area \"%d\" finished\n\n", p->name, oa->areaid); - oa=oa->next; } } @@ -74,6 +63,7 @@ ospf_init(struct proto_config *c) p->neigh_notify = NULL; p->if_notify = NULL; init_list(&(po->iface_list)); + init_list(&(po->area_list)); return p; } |