summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_if.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2008-11-24 13:22:09 +0000
committermikeb <mikeb@openbsd.org>2008-11-24 13:22:09 +0000
commit4b3977248902c22d96aaebdb5784840debc2631c (patch)
treeabe79dda33a98c51b9e716f1edd61d79785c2c44 /sys/net/pf_if.c
parentswitch from using MCLGET to MCLGETI for clusters going onto the rx ring. (diff)
downloadwireguard-openbsd-4b3977248902c22d96aaebdb5784840debc2631c.tar.xz
wireguard-openbsd-4b3977248902c22d96aaebdb5784840debc2631c.zip
Fix splasserts seen in pr 5987 by propagating a flag that discribes
whether we're called from the interrupt context to the functions performing allocations. Looked at by mpf@ and henning@, tested by mpf@ and Antti Harri, the pr originator. ok tedu
Diffstat (limited to 'sys/net/pf_if.c')
-rw-r--r--sys/net/pf_if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index e39a9d6501e..ddf5cec4d2f 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.54 2008/06/14 16:55:28 mk Exp $ */
+/* $OpenBSD: pf_if.c,v 1.55 2008/11/24 13:22:09 mikeb Exp $ */
/*
* Copyright 2005 Henning Brauer <henning@openbsd.org>
@@ -367,7 +367,7 @@ pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af)
goto _bad;
}
- if ((dyn->pfid_kt = pfr_attach_table(ruleset, tblname)) == NULL) {
+ if ((dyn->pfid_kt = pfr_attach_table(ruleset, tblname, 1)) == NULL) {
rv = 1;
goto _bad;
}