summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2007-03-01 13:12:09 +0000
committerAndre Oppermann <andre@FreeBSD.org>2007-03-01 13:12:09 +0000
commit6aa5b623151eb5af06536aa55384da93542426ec (patch)
treed9d6b866374eea5766bc8ca79d4a06bf1dcd6c4c /sys/netinet/tcp_output.c
parent4039f5fc033e5eb334b72c000bc77012231f211a (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index ca212672e666..586a5bd2ba1e 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -801,13 +801,14 @@ send:
* IP, TCP and Options length to keep ip->ip_len from
* overflowing. Prevent the last segment from being
* fractional thus making them all equal sized and set
- * the flag to continue sending.
+ * the flag to continue sending. TSO is disabled when
+ * IP options or IPSEC are present.
*/
if (len + optlen + ipoptlen > tp->t_maxopd) {
flags &= ~TH_FIN;
if (tso) {
if (len > TCP_MAXWIN - hdrlen) {
- len = TCP_MAXWIN - hdrlen;
+ len = TCP_MAXWIN - hdrlen - optlen;
len = len - (len % (tp->t_maxopd - optlen));
sendalot = 1;
} else if (tp->t_flags & TF_NEEDFIN)