summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-12-29 15:34:48 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-12-29 15:42:12 +0100
commit74c838a87000ca800e8b3f265340c1317989a04a (patch)
tree28070bc0efd51ff30b664b52dd10c7b06b57e4ff /proto/ospf/ospf.c
parent9a70c8d6c38155d8abb6d814563b9eefc134e901 (diff)
Move ID allocator to a separate file and use it also in OSPF
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r--proto/ospf/ospf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c
index 4ffb187d..1c128794 100644
--- a/proto/ospf/ospf.c
+++ b/proto/ospf/ospf.c
@@ -240,6 +240,8 @@ ospf_start(struct proto *P)
init_list(&(p->area_list));
fib_init(&p->rtf, P->pool, p->ospf2 ? NET_IP4 : NET_IP6,
sizeof(ort), OFFSETOF(ort, fn), 0, NULL);
+ if (ospf_is_v3(p))
+ idm_init(&p->idm, P->pool, 16);
p->areano = 0;
p->gr = ospf_top_new(p, P->pool);
s_init_list(&(p->lsal));