From 9806bf56804f217429d9bc2580b7b2b0a6f6fc81 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Fri, 6 Nov 2015 06:52:42 -0600 Subject: Revert "If there are any IPSEC security policies skip the tryforward step." This reverts commit de3b422781821f809b436ced1af4fc3dd4dc0c1a. TAG: tryforward --- sys/netinet/ip_input.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 6b19eb3..5009346 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -77,8 +77,6 @@ __FBSDID("$FreeBSD$"); #include #ifdef IPSEC #include -#include -#include #endif /* IPSEC */ #include @@ -717,15 +715,8 @@ ours: } /* Try to forward the packet, but if we fail continue */ -#ifdef IPSEC - /* For now we do not handle IPSEC in tryforward. */ - if (!key_havesp(IPSEC_DIR_INBOUND) && !key_havesp(IPSEC_DIR_OUTBOUND)) - if (ip_tryforward(m) == NULL) - return; -#else if (ip_tryforward(m) == NULL) return; -#endif /* IPSEC */ #ifdef IPSEC /* -- cgit v1.1