aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec/ipsec_input.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2007-07-19 09:57:54 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2007-07-19 09:57:54 +0000
commitb28cd3345920b8820e47bf2da8b3964b01126a87 (patch)
treef8b2fb6e31f9bff5eb22dda7b159464e1960a99f /sys/netipsec/ipsec_input.c
parent8accf26fea992c6f98436ffe12dadb565b68341a (diff)
downloadsrc-b28cd3345920b8820e47bf2da8b3964b01126a87.tar.gz
src-b28cd3345920b8820e47bf2da8b3964b01126a87.zip
Replace hard coded options by their defined PFIL_{IN,OUT} names.
Approved by: re (hrs)
Notes
Notes: svn path=/head/; revision=171497
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