aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-07-22 18:58:34 +0000
committerSam Leffler <sam@FreeBSD.org>2003-07-22 18:58:34 +0000
commit1f76a5e218089c894762ea21724727f3a3f9490e (patch)
tree50f5f894ba14c7a9de5b909c7ce159aadb794a9b /sys/netinet/ip_input.c
parent28935f275370493e0573f075c7efe9f7599e3c44 (diff)
downloadsrc-1f76a5e218089c894762ea21724727f3a3f9490e.tar.gz
src-1f76a5e218089c894762ea21724727f3a3f9490e.zip
add IPSEC_FILTERGIF suport for FAST_IPSEC
PR: kern/51922 Submitted by: Eric Masson <e-masson@kisoft-services.com> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=117897
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 7aa4005a7030..b06ab8ae1d9b 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -430,6 +430,13 @@ tooshort:
if (ipsec_gethist(m, NULL))
goto pass;
#endif
+#if defined(FAST_IPSEC) && !defined(IPSEC_FILTERGIF)
+ /*
+ * Bypass packet filtering for packets from a tunnel (gif).
+ */
+ if (m_tag_find(m, PACKET_TAG_IPSEC_IN_DONE, NULL) != NULL)
+ goto pass;
+#endif
/*
* IpHack's section.