Added missing 'else' for 'if (isipv6)' at IPv6 length setting in tcp_respond().

By this bug, IPv6 reset was not sent.
(I checked around same kind of bug, but no other found.)
This commit is contained in:
shin 2000-01-15 14:34:56 +00:00
parent 89bb6f8da7
commit 7620bb5bda
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
}
} else
#endif
{
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen));

View File

@ -393,7 +393,7 @@ tcp_respond(tp, ipgen, th, m, ack, seq, flags)
ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
}
} else
#endif
{
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen));