summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_forward.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-31 12:24:53 +0000
committerbz <bz@FreeBSD.org>2009-01-31 12:24:53 +0000
commitb3bbe5cac1217402e978c8028af7ce35f9cce193 (patch)
tree3f4916cc2a63e78129a81336443f370f0ed2825d /sys/netinet6/ip6_forward.c
parent7a153194ec575997818d16f6ee3e0c909e8be1f8 (diff)
downloadFreeBSD-src-b3bbe5cac1217402e978c8028af7ce35f9cce193.zip
FreeBSD-src-b3bbe5cac1217402e978c8028af7ce35f9cce193.tar.gz
Coalesce two consecutive #ifdef IPSEC blocks.
Move the skip_ipsec: label below the goto as we can never have ipsecrt set if we get to that label so there is no need to check. MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
-rw-r--r--sys/netinet6/ip6_forward.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index db0094c..0ce591f 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -350,12 +350,9 @@ ip6_forward(struct mbuf *m, int srcrt)
if (dst != NULL && rt != NULL)
ipsecrt = 1;
}
- skip_ipsec:
-#endif /* IPSEC */
-
-#ifdef IPSEC
if (ipsecrt)
goto skip_routing;
+skip_ipsec:
#endif
dst = (struct sockaddr_in6 *)&V_ip6_forward_rt.ro_dst;
OpenPOWER on IntegriCloud