summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/bgp.c4
-rw-r--r--proto/static/static.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index b9a1d157..cccced57 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -185,8 +185,8 @@ bgp_open(struct bgp_proto *p)
if (!bgp_linpool)
{
- bgp_linpool = lp_new(proto_pool, 4080);
- bgp_linpool2 = lp_new(proto_pool, 4080);
+ bgp_linpool = lp_new_default(proto_pool);
+ bgp_linpool2 = lp_new_default(proto_pool);
}
return 0;
diff --git a/proto/static/static.c b/proto/static/static.c
index f74ecee0..bb1501a5 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -410,7 +410,7 @@ static_start(struct proto *P)
struct static_route *r;
if (!static_lp)
- static_lp = lp_new(&root_pool, 1008);
+ static_lp = lp_new(&root_pool, LP_GOOD_SIZE(1024));
if (p->igp_table_ip4)
rt_lock_table(p->igp_table_ip4);