summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoroleg <oleg@FreeBSD.org>2007-05-17 00:05:13 +0000
committeroleg <oleg@FreeBSD.org>2007-05-17 00:05:13 +0000
commitfdfea0ef5b9f927321648dfdb405ff8be01d410a (patch)
tree39c42fc036ca58e59e06f9fd9e88fedf149421a8 /sys
parenta190fb02dce75cddff7fe28b681642f288dbaa0e (diff)
downloadFreeBSD-src-fdfea0ef5b9f927321648dfdb405ff8be01d410a.zip
FreeBSD-src-fdfea0ef5b9f927321648dfdb405ff8be01d410a.tar.gz
Unbreak IPv4 kernel build.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_timewait.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 7158bdc..b6279b3 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -412,6 +412,7 @@ tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
if (m->m_flags & (M_BCAST|M_MCAST))
goto drop;
if (isipv6) {
+#ifdef INET6
struct ip6_hdr *ip6;
/* IPv6 anycast check is done at tcp6_input() */
@@ -419,6 +420,7 @@ tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst) ||
IN6_IS_ADDR_MULTICAST(&ip6->ip6_src))
goto drop;
+#endif
} else {
struct ip *ip;
OpenPOWER on IntegriCloud