Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/ip_input.c
Show First 20 Lines • Show All 1,022 Lines • ▼ Show 20 Lines | |||||
#ifdef IPSTEALTH | #ifdef IPSTEALTH | ||||
if (V_ipstealth == 0) | if (V_ipstealth == 0) | ||||
#endif | #endif | ||||
ip->ip_ttl -= IPTTLDEC; | ip->ip_ttl -= IPTTLDEC; | ||||
#if defined(IPSEC) || defined(IPSEC_SUPPORT) | #if defined(IPSEC) || defined(IPSEC_SUPPORT) | ||||
if (IPSEC_ENABLED(ipv4)) { | if (IPSEC_ENABLED(ipv4)) { | ||||
if ((error = IPSEC_FORWARD(ipv4, m)) != 0) { | if ((error = IPSEC_FORWARD(ipv4, m)) != 0) { | ||||
/* mbuf consumed by IPsec */ | /* mbuf consumed by IPsec */ | ||||
RO_NHFREE(&ro); | |||||
m_freem(mcopy); | m_freem(mcopy); | ||||
if (error != EINPROGRESS) | if (error != EINPROGRESS) | ||||
IPSTAT_INC(ips_cantforward); | IPSTAT_INC(ips_cantforward); | ||||
return; | return; | ||||
} | } | ||||
/* No IPsec processing required */ | /* No IPsec processing required */ | ||||
} | } | ||||
#endif /* IPSEC */ | #endif /* IPSEC */ | ||||
▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines |