1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

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:
Yoshinobu Inoue 2000-01-15 14:34:56 +00:00
parent ab80d6fabc
commit 0567ae029a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56039
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) + ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen)); tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr); tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
} } else
#endif #endif
{ {
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen)); 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) + ip6->ip6_plen = htons((u_short)(sizeof (struct tcphdr) +
tlen)); tlen));
tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr); tlen += sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
} } else
#endif #endif
{ {
ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen)); ipov->ih_len = htons((u_short)(sizeof (struct tcphdr) + tlen));