summaryrefslogtreecommitdiffstats
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorsashan <sashan@openbsd.org>2021-02-04 00:55:41 +0000
committersashan <sashan@openbsd.org>2021-02-04 00:55:41 +0000
commit2d1fcc79dc4d10fc9b63bb9bf17c5622eda82c67 (patch)
tree5ebf4ca1bcc947321b5b8a11c656a90f239edd29 /sys/net/pf.c
parentAdd SIOCAIFADDR_IN and SIOCDIFADDR_IN to the wroute pledge (diff)
downloadwireguard-openbsd-2d1fcc79dc4d10fc9b63bb9bf17c5622eda82c67.tar.xz
wireguard-openbsd-2d1fcc79dc4d10fc9b63bb9bf17c5622eda82c67.zip
make if_pfsync.c a better friend with PF_LOCK
The code delivered in this change is currently disabled. Brave souls may enable the code by adding -DWITH_PF_LOCK when building customized kernel. Big thanks goes to Hrvoje@ for providing test equipment and testing. As soon as we enter the next release cycle, the WITH_PF_LOCK will be defined as default option for MP kernels. OK dlg@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 44e0e17f757..74ec0aa6278 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.1107 2021/02/03 07:41:12 dlg Exp $ */
+/* $OpenBSD: pf.c,v 1.1108 2021/02/04 00:55:41 sashan Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -6935,7 +6935,7 @@ pf_test(sa_family_t af, int fwdir, struct ifnet *ifp, struct mbuf **m0)
PF_STATE_EXIT_READ();
if (action == PF_PASS || action == PF_AFRT) {
#if NPFSYNC > 0
- pfsync_update_state(s, &have_pf_lock);
+ pfsync_update_state(s);
#endif /* NPFSYNC > 0 */
r = s->rule.ptr;
a = s->anchor.ptr;
@@ -6967,7 +6967,7 @@ pf_test(sa_family_t af, int fwdir, struct ifnet *ifp, struct mbuf **m0)
PF_STATE_EXIT_READ();
if (action == PF_PASS || action == PF_AFRT) {
#if NPFSYNC > 0
- pfsync_update_state(s, &have_pf_lock);
+ pfsync_update_state(s);
#endif /* NPFSYNC > 0 */
r = s->rule.ptr;
a = s->anchor.ptr;
@@ -7043,7 +7043,7 @@ pf_test(sa_family_t af, int fwdir, struct ifnet *ifp, struct mbuf **m0)
if (action == PF_PASS || action == PF_AFRT) {
#if NPFSYNC > 0
- pfsync_update_state(s, &have_pf_lock);
+ pfsync_update_state(s);
#endif /* NPFSYNC > 0 */
r = s->rule.ptr;
a = s->anchor.ptr;