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

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) {