summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-12-18 08:14:16 +0000
committerglebius <glebius@FreeBSD.org>2012-12-18 08:14:16 +0000
commit824cae556ce5476f9cd79a50e14c4dc250161c14 (patch)
treec2d209227618d6601337169124584cbcb7b47799 /sys/netinet/tcp_input.c
parentd30d64515c05cec7aa610c8579ec96e39e2fbb44 (diff)
downloadFreeBSD-src-824cae556ce5476f9cd79a50e14c4dc250161c14.zip
FreeBSD-src-824cae556ce5476f9cd79a50e14c4dc250161c14.tar.gz
Fix !INET6 build after r244365.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index b187fa1..846887d2 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -780,8 +780,17 @@ findpcb:
/*
* 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
OpenPOWER on IntegriCloud