aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_forward.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2002-10-16 02:25:05 +0000
committerSam Leffler <sam@FreeBSD.org>2002-10-16 02:25:05 +0000
commitb9234fafa0783687e83b2fa646e3ee137d87913a (patch)
treeae7276b550c8f6a3436b1985ff4cb31e8a826d66 /sys/netinet6/ip6_forward.c
parentc919ec4b66ba21c791971b35d7d26d15cb730768 (diff)
Notes
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
-rw-r--r--sys/netinet6/ip6_forward.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index 97fa8d6536c2..1e6dde8df958 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -74,6 +74,13 @@
#include <netkey/key.h>
#endif /* IPSEC */
+#ifdef FAST_IPSEC
+#include <netipsec/ipsec.h>
+#include <netipsec/ipsec6.h>
+#include <netipsec/key.h>
+#define IPSEC
+#endif /* FAST_IPSEC */
+
#include <netinet6/ip6_fw.h>
#include <net/net_osdep.h>
@@ -124,7 +131,9 @@ ip6_forward(m, srcrt)
* before forwarding packet actually.
*/
if (ipsec6_in_reject(m, NULL)) {
+#if !defined(FAST_IPSEC)
ipsec6stat.in_polvio++;
+#endif
m_freem(m);
return;
}