Fix the timeout for INIT retransmissions in the case where RTO_MIN is

smaller than RTO_INITIAL.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-10-13 18:27:55 +00:00
parent 8c444cbc45
commit 9372530827
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289240

View File

@ -408,7 +408,11 @@ sctp_backoff_on_timeout(struct sctp_tcb *stcb,
int num_marked, int num_abandoned)
{
if (net->RTO == 0) {
net->RTO = stcb->asoc.minrto;
if (net->RTO_measured) {
net->RTO = stcb->asoc.minrto;
} else {
net->RTO = stcb->asoc.initial_rto;
}
}
net->RTO <<= 1;
if (net->RTO > stcb->asoc.maxrto) {