summaryrefslogtreecommitdiff
path: root/sys/netipsec/ipsec_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netipsec/ipsec_input.c')
-rw-r--r--sys/netipsec/ipsec_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c
index b98e1c88d31d..0e35a3787c1d 100644
--- a/sys/netipsec/ipsec_input.c
+++ b/sys/netipsec/ipsec_input.c
@@ -56,6 +56,7 @@
#include <sys/syslog.h>
#include <net/if.h>
+#include <net/pfil.h>
#include <net/route.h>
#include <net/netisr.h>
@@ -460,7 +461,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
ipsec_bpf(m, sav, AF_INET);
if (prot != IPPROTO_IPIP)
- if ((error = ipsec_filter(&m, 1)) != 0)
+ if ((error = ipsec_filter(&m, PFIL_IN)) != 0)
return (error);
#endif