summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2007-07-01 11:41:27 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2007-07-01 11:41:27 +0000
commit2cb64cb272ad94f7a5e903f76fb9817f1b8452ba (patch)
tree2bcfb09751e29be8d172ae9e835bab3e5c5699f2 /sys/netinet/tcp_input.c
parent069441f7185186e3f9cf00f10c49ee0ac6876106 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 82e36db68d61..9d31c79303f3 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -87,12 +87,6 @@
#include <netipsec/ipsec6.h>
#endif /*FAST_IPSEC*/
-#ifdef IPSEC
-#include <netinet6/ipsec.h>
-#include <netinet6/ipsec6.h>
-#include <netkey/key.h>
-#endif /*IPSEC*/
-
#include <machine/in_cksum.h>
#include <security/mac/mac_framework.h>
@@ -451,22 +445,18 @@ findpcb:
m->m_pkthdr.rcvif);
}
-#if defined(IPSEC) || defined(FAST_IPSEC)
+#ifdef FAST_IPSEC
#ifdef INET6
if (isipv6 && inp != NULL && ipsec6_in_reject(m, inp)) {
-#ifdef IPSEC
ipsec6stat.in_polvio++;
-#endif
goto dropunlock;
} else
#endif /* INET6 */
if (inp != NULL && ipsec4_in_reject(m, inp)) {
-#ifdef IPSEC
- ipsecstat.in_polvio++;
-#endif
+ ipsec4stat.in_polvio++;
goto dropunlock;
}
-#endif /*IPSEC || FAST_IPSEC*/
+#endif /* FAST_IPSEC */
/*
* If the INPCB does not exist then all data in the incoming