diff options
author | bz <bz@FreeBSD.org> | 2007-07-19 09:57:54 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2007-07-19 09:57:54 +0000 |
commit | ee4925e857d632297a434e342a141e1c6ab67588 (patch) | |
tree | f8b2fb6e31f9bff5eb22dda7b159464e1960a99f /sys/netipsec/ipsec_input.c | |
parent | e7080d27071c3286e207466cce32a1f0ed8f16ce (diff) | |
download | FreeBSD-src-ee4925e857d632297a434e342a141e1c6ab67588.zip FreeBSD-src-ee4925e857d632297a434e342a141e1c6ab67588.tar.gz |
Replace hard coded options by their defined PFIL_{IN,OUT} names.
Approved by: re (hrs)
Diffstat (limited to 'sys/netipsec/ipsec_input.c')
-rw-r--r-- | sys/netipsec/ipsec_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_input.c b/sys/netipsec/ipsec_input.c index b98e1c8..0e35a37 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 |