diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-30 12:53:48 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-30 12:53:48 +0200 |
commit | 5970fcda8c4eb2cfe69c04d50429855c7c57bb6d (patch) | |
tree | 68fd5a6fc1480dbdd492ff88705dda4d9e066ff6 /proto | |
parent | 26c09e1d25abff7fb88959dc6fbaa7ae5eb295ad (diff) | |
download | bird-5970fcda8c4eb2cfe69c04d50429855c7c57bb6d.tar bird-5970fcda8c4eb2cfe69c04d50429855c7c57bb6d.zip |
Some exchange between init() and start().
Diffstat (limited to 'proto')
-rw-r--r-- | proto/ospf/ospf.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 7fff7ef..5cc93b8 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -14,10 +14,10 @@ ospf_start(struct proto *p) struct proto_ospf *po=(struct proto_ospf *)p; DBG("%s: Start\n",p->name); - p->if_notify=ospf_if_notify; - p->rte_better=ospf_rte_better; - p->rte_same=ospf_rte_same; fib_init(&po->efib,p->pool,sizeof(struct extfib),16,init_efib); + init_list(&(po->iface_list)); + init_list(&(po->area_list)); + po->areano=0; return PS_UP; } @@ -64,11 +64,10 @@ ospf_init(struct proto_config *c) debug("OSPF: Init requested.\n"); p->neigh_notify = NULL; - p->if_notify = NULL; - init_list(&(po->iface_list)); - init_list(&(po->area_list)); p->import_control = ospf_import_control; p->rt_notify = ospf_rt_notify; + p->rte_better=ospf_rte_better; + p->rte_same=ospf_rte_same; return p; } |