diff options
author | Maria Matejka <mq@ucw.cz> | 2022-04-04 22:34:14 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-04-06 18:14:08 +0200 |
commit | 7e86ff2076f3046c6dcca53e7756f112362aeee9 (patch) | |
tree | 0ae2e3ff87f37704af0c244e14fa116d1df238e7 /proto/ospf/ospf.c | |
parent | dabd7bccb3b9e2b7482cf4ae7619a67559f3ac94 (diff) |
All linpools use pages to allocate regular blocks
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r-- | proto/ospf/ospf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 4ea53942..d8bcc838 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -299,7 +299,7 @@ ospf_start(struct proto *P) p->lsab_size = 256; p->lsab_used = 0; p->lsab = mb_alloc(P->pool, p->lsab_size); - p->nhpool = lp_new(P->pool, 12*sizeof(struct nexthop)); + p->nhpool = lp_new(P->pool); init_list(&(p->iface_list)); init_list(&(p->area_list)); fib_init(&p->rtf, P->pool, ospf_get_af(p), sizeof(ort), OFFSETOF(ort, fn), 0, NULL); |