Unbreak IPv4 kernel build.

This commit is contained in:
oleg 2007-05-17 00:05:13 +00:00
parent a190fb02dc
commit fdfea0ef5b

View File

@ -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;