[SCTP]: correct the number of INIT retransmissions
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 30 Jan 2006 23:59:54 +0000 (15:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2006 23:59:54 +0000 (15:59 -0800)
commit81845c21dc1ec7ce2bf12845dbc01e4880f9ea9a
tree70bcfbad6cb4076b16da72f7c7f31be65b7e7dfc
parent7add2a439868d636910fb6a216b12c7392778956
[SCTP]: correct the number of INIT retransmissions

We currently count the initial INIT/COOKIE_ECHO chunk toward the
retransmit count and thus sends a total of sctp_max_retrans_init chunks.
The correct behavior is to retransmit the chunk sctp_max_retrans_init in
addition to sending the original.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c
net/sctp/socket.c