tcp: fix TCP_DEFER_ACCEPT retrans calculation
authorJulian Anastasov <ja@ssi.bg>
Mon, 19 Oct 2009 10:10:40 +0000 (10:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Oct 2009 02:19:06 +0000 (19:19 -0700)
commitb103cf34382f26ff48a87931b83f13b177b47c1a
tree6922379bca3fc9935d394bc474a91b859ac06813
parent0c3d79bce48034018e840468ac5a642894a521a3
tcp: fix TCP_DEFER_ACCEPT retrans calculation

Fix TCP_DEFER_ACCEPT conversion between seconds and
retransmission to match the TCP SYN-ACK retransmission periods
because the time is converted to such retransmissions. The old
algorithm selects one more retransmission in some cases. Allow
up to 255 retransmissions.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c