Skip to content

Commit

Permalink
[TCP]: Fix iov_len calculation in tcp_v4_send_ack().
Browse files Browse the repository at this point in the history
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: Craig Schlenter <craig@codefountain.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Craig Schlenter authored and David S. Miller committed Jan 9, 2007
1 parent 88044c8 commit cb48cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static void tcp_v4_send_ack(struct tcp_timewait_sock *twsk,
TCPOLEN_TIMESTAMP);
rep.opt[1] = htonl(tcp_time_stamp);
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. */
Expand Down

0 comments on commit cb48cfe

Please sign in to comment.