diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-08-30 23:29:05 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-08-30 23:29:05 +0000 |
commit | 81db87de733ad83093fe047ea7411bc8afaa1db0 (patch) | |
tree | a1ce9074ab7962c44674e08a144cc2a9685e2e65 | |
parent | 566e79f47d7cfee45eab692a8f88f937c77950e1 (diff) |
pool_setipl
ok yasuoka@
-rw-r--r-- | sys/net/pipex.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c index e658dc5121d..53cc38d983a 100644 --- a/sys/net/pipex.c +++ b/sys/net/pipex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.c,v 1.87 2016/03/22 23:53:01 dlg Exp $ */ +/* $OpenBSD: pipex.c,v 1.88 2016/08/30 23:29:04 dlg Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -131,10 +131,12 @@ pipex_init(void) rn_init(sizeof(struct sockaddr_in6)); - pool_init(&pipex_session_pool, sizeof(struct pipex_session), 0, 0, 0, - "ppxss", NULL); + pool_init(&pipex_session_pool, sizeof(struct pipex_session), 0, 0, + PR_WAITOK, "ppxss", NULL); + pool_setipl(&pipex_session_pool, IPL_NONE); pool_init(&mppe_key_pool, PIPEX_MPPE_KEYLEN * PIPEX_MPPE_NOLDKEY, 0, 0, - 0, "mppekey", NULL); + PR_WAITOK, "mppekey", NULL); + pool_setipl(&mppe_key_pool, IPL_NONE); LIST_INIT(&pipex_session_list); LIST_INIT(&pipex_close_wait_list); |