提交 cb48cfe8 编写于 作者: C Craig Schlenter 提交者: David S. Miller

[TCP]: Fix iov_len calculation in tcp_v4_send_ack().

This fixes the ftp stalls present in the current kernels.

All credit goes to Komuro <komurojun-mbn@nifty.com> for tracking
this down. The patch is untested but it looks *cough* obviously
correct.
Signed-off-by: NCraig Schlenter <craig@codefountain.com>
Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 88044c8c
...@@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_timewait_sock *twsk, ...@@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_timewait_sock *twsk,
TCPOLEN_TIMESTAMP); TCPOLEN_TIMESTAMP);
rep.opt[1] = htonl(tcp_time_stamp); rep.opt[1] = htonl(tcp_time_stamp);
rep.opt[2] = htonl(ts); rep.opt[2] = htonl(ts);
arg.iov[0].iov_len = TCPOLEN_TSTAMP_ALIGNED; arg.iov[0].iov_len += TCPOLEN_TSTAMP_ALIGNED;
} }
/* Swap the send and the receive. */ /* Swap the send and the receive. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册