aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_forward.c
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2014-06-08 09:08:51 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2014-06-08 09:08:51 +0000
commit45b4fb04493fb2e82eafc6b1f543f2edd572ba59 (patch)
tree907f72d296eec70a53a5ae1aaa51620e8a9432f5 /sys/netinet6/ip6_forward.c
parent5fcf252f410e7784626d6d5d0e75042be23d4f24 (diff)
downloadsrc-45b4fb04493fb2e82eafc6b1f543f2edd572ba59.tar.gz
src-45b4fb04493fb2e82eafc6b1f543f2edd572ba59.zip
Remove unused variable.
Sponsored by: Yandex LLC
Notes
Notes: svn path=/head/; revision=267220
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
-rw-r--r--sys/netinet6/ip6_forward.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index b3061c34f178..13b4b793bc83 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -104,7 +104,6 @@ ip6_forward(struct mbuf *m, int srcrt)
struct in6_addr src_in6, dst_in6, odst;
#ifdef IPSEC
struct secpolicy *sp = NULL;
- int ipsecrt = 0;
#endif
#ifdef SCTP
int sw_csum;
@@ -383,11 +382,7 @@ again2:
IP6STAT_INC(ip6s_badscope);
goto bad;
}
- if (inzone != outzone
-#ifdef IPSEC
- && !ipsecrt
-#endif
- ) {
+ if (inzone != outzone) {
IP6STAT_INC(ip6s_cantforward);
IP6STAT_INC(ip6s_badscope);
in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard);
@@ -477,9 +472,6 @@ again2:
* modified by a redirect.
*/
if (V_ip6_sendredirects && rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt &&
-#ifdef IPSEC
- !ipsecrt &&
-#endif /* IPSEC */
(rt->rt_flags & (RTF_DYNAMIC|RTF_MODIFIED)) == 0) {
if ((rt->rt_ifp->if_flags & IFF_POINTOPOINT) != 0) {
/*
@@ -656,10 +648,6 @@ pass:
bad:
m_freem(m);
out:
- if (rt != NULL
-#ifdef IPSEC
- && !ipsecrt
-#endif
- )
+ if (rt != NULL)
RTFREE(rt);
}