summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authormvs <mvs@cvs.openbsd.org>2021-07-08 16:39:56 +0000
committermvs <mvs@cvs.openbsd.org>2021-07-08 16:39:56 +0000
commit2d0a28dcbb3a4b0f4d9c6f71f779c85587aef96a (patch)
tree2762d9dc6d3c8e7c5269783184ed16b6e54a68dc /sys/net
parent9ef2faa8d5965726ba78d1f1d2753f633ac93ecb (diff)
Initialize `ipsec_acquire_pool' pool (9) within pfkey_init() instead of
doing that in runtime within ipsp_acquire_sa(). ok bluhm@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfkeyv2.c4
-rw-r--r--sys/net/pfkeyv2.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 66ab56eb624..d81d9e0e525 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.216 2021/07/05 12:01:20 tobhe Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.217 2021/07/08 16:39:55 mvs Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -249,6 +249,8 @@ pfkey_init(void)
IPL_SOFTNET, PR_WAITOK, "pkpcb", NULL);
pool_init(&ipsec_policy_pool, sizeof(struct ipsec_policy), 0,
IPL_SOFTNET, 0, "ipsec policy", NULL);
+ pool_init(&ipsec_acquire_pool, sizeof(struct ipsec_acquire), 0,
+ IPL_SOFTNET, 0, "ipsec acquire", NULL);
}
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index 3326ae8b385..2c68cb2d863 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.h,v 1.88 2021/07/05 12:01:20 tobhe Exp $ */
+/* $OpenBSD: pfkeyv2.h,v 1.89 2021/07/08 16:39:55 mvs Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) January 1998
*
@@ -449,6 +449,7 @@ extern const uint64_t sadb_exts_allowed_out[SADB_MAX+1];
extern const uint64_t sadb_exts_required_out[SADB_MAX+1];
extern struct pool ipsec_policy_pool;
+extern struct pool ipsec_acquire_pool;
#endif /* _KERNEL */
#endif /* _NET_PFKEY_V2_H_ */