diff options
author | sam <sam@FreeBSD.org> | 2003-07-22 18:58:34 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-07-22 18:58:34 +0000 |
commit | ecb8ae7061218a633176e600c6332f7437f33ba6 (patch) | |
tree | 50f5f894ba14c7a9de5b909c7ce159aadb794a9b /sys/netinet | |
parent | 127ef7b2f34474be14e0278b3f66b18383c0361d (diff) | |
download | FreeBSD-src-ecb8ae7061218a633176e600c6332f7437f33ba6.zip FreeBSD-src-ecb8ae7061218a633176e600c6332f7437f33ba6.tar.gz |
add IPSEC_FILTERGIF suport for FAST_IPSEC
PR: kern/51922
Submitted by: Eric Masson <e-masson@kisoft-services.com>
MFC after: 1 week
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 7aa4005..b06ab8a 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. |