Fix !INET6 build after r244365.

This commit is contained in:
Gleb Smirnoff 2012-12-18 08:14:16 +00:00
parent dd029d52fa
commit b8056fae06
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244387

View File

@ -780,8 +780,17 @@ tcp_input(struct mbuf *m, int off0)
/*
* Grab info from PACKET_TAG_IPFORWARD tag prepended to the chain.
*/
if ((isipv6 && (m->m_flags & M_IP6_NEXTHOP)) ||
(!isipv6 && (m->m_flags & M_IP_NEXTHOP)))
if (
#ifdef INET6
(isipv6 && (m->m_flags & M_IP6_NEXTHOP))
#ifdef INET
|| (!isipv6 && (m->m_flags & M_IP_NEXTHOP))
#endif
#endif
#if defined(INET) && !defined(INET6)
(m->m_flags & M_IP_NEXTHOP)
#endif
)
fwd_tag = m_tag_find(m, PACKET_TAG_IPFORWARD, NULL);
#ifdef INET6