-/* $OpenBSD: pfkeyv2.c,v 1.210 2021/05/04 09:27:22 mvs Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.211 2021/05/04 09:28:04 mvs Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
SRPL_INIT(&pkptable.pkp_list);
pool_init(&pkpcb_pool, sizeof(struct pkpcb), 0,
IPL_NONE, PR_WAITOK, "pkpcb", NULL);
+ pool_init(&ipsec_policy_pool, sizeof(struct ipsec_policy), 0,
+ IPL_SOFTNET, 0, "ipsec policy", NULL);
}
}
if (!exists) {
- if (ipsec_policy_pool_initialized == 0) {
- ipsec_policy_pool_initialized = 1;
- pool_init(&ipsec_policy_pool,
- sizeof(struct ipsec_policy), 0,
- IPL_NONE, 0, "ipsec policy", NULL);
- }
-
/* Allocate policy entry */
ipo = pool_get(&ipsec_policy_pool, PR_NOWAIT|PR_ZERO);
if (ipo == NULL) {
-/* $OpenBSD: ip_ipsp.h,v 1.196 2020/11/05 19:28:28 phessler Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.197 2021/05/04 09:28:04 mvs Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
extern int ipsec_in_use;
extern u_int64_t ipsec_last_added;
-extern int ipsec_policy_pool_initialized;
extern int encdebug; /* enable message reporting */
extern int ipsec_keep_invalid; /* lifetime of embryonic SAs (in sec) */
-/* $OpenBSD: ip_spd.c,v 1.102 2020/06/24 22:03:43 cheloha Exp $ */
+/* $OpenBSD: ip_spd.c,v 1.103 2021/05/04 09:28:04 mvs Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
struct pool ipsec_policy_pool;
struct pool ipsec_acquire_pool;
-int ipsec_policy_pool_initialized = 0;
/* Protected by the NET_LOCK(). */
int ipsec_acquire_pool_initialized = 0;