Tidy up IPFIREWALL_FORWARD sections and comments.

This commit is contained in:
Andre Oppermann 2007-03-21 18:56:03 +00:00
parent 794235b737
commit b10fbdeafa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167779
2 changed files with 6 additions and 8 deletions

View File

@ -30,7 +30,7 @@
* $FreeBSD$
*/
#include "opt_ipfw.h" /* for ipfw_fwd */
#include "opt_ipfw.h" /* for ipfw_fwd */
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipsec.h"
@ -657,8 +657,9 @@ tcp_input(m, off0)
}
/* Remove the tag from the packet. We don't need it anymore. */
m_tag_delete(m, fwd_tag);
} else {
} else
#endif /* IPFIREWALL_FORWARD */
{
if (isipv6) {
#ifdef INET6
inp = in6_pcblookup_hash(&tcbinfo,
@ -673,9 +674,7 @@ tcp_input(m, off0)
ip->ip_dst, th->th_dport,
INPLOOKUP_WILDCARD,
m->m_pkthdr.rcvif);
#ifdef IPFIREWALL_FORWARD
}
#endif /* IPFIREWALL_FORWARD */
#if defined(IPSEC) || defined(FAST_IPSEC)
#ifdef INET6

View File

@ -30,7 +30,7 @@
* $FreeBSD$
*/
#include "opt_ipfw.h" /* for ipfw_fwd */
#include "opt_ipfw.h" /* for ipfw_fwd */
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipsec.h"
@ -657,8 +657,9 @@ tcp_input(m, off0)
}
/* Remove the tag from the packet. We don't need it anymore. */
m_tag_delete(m, fwd_tag);
} else {
} else
#endif /* IPFIREWALL_FORWARD */
{
if (isipv6) {
#ifdef INET6
inp = in6_pcblookup_hash(&tcbinfo,
@ -673,9 +674,7 @@ tcp_input(m, off0)
ip->ip_dst, th->th_dport,
INPLOOKUP_WILDCARD,
m->m_pkthdr.rcvif);
#ifdef IPFIREWALL_FORWARD
}
#endif /* IPFIREWALL_FORWARD */
#if defined(IPSEC) || defined(FAST_IPSEC)
#ifdef INET6