diff options
author | oleg <oleg@FreeBSD.org> | 2007-05-17 00:05:13 +0000 |
---|---|---|
committer | oleg <oleg@FreeBSD.org> | 2007-05-17 00:05:13 +0000 |
commit | fdfea0ef5b9f927321648dfdb405ff8be01d410a (patch) | |
tree | 39c42fc036ca58e59e06f9fd9e88fedf149421a8 /sys/netinet/tcp_timewait.c | |
parent | a190fb02dce75cddff7fe28b681642f288dbaa0e (diff) | |
download | FreeBSD-src-fdfea0ef5b9f927321648dfdb405ff8be01d410a.zip FreeBSD-src-fdfea0ef5b9f927321648dfdb405ff8be01d410a.tar.gz |
Unbreak IPv4 kernel build.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
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; |