From 9708f201776b19df8dda84648daf1fa51f897810 Mon Sep 17 00:00:00 2001 From: rrs Date: Fri, 8 Jun 2007 10:57:11 +0000 Subject: - RTO was not being initialized to 0, thus the rtt calculation algoritm would not go through the proper initialization. - The initialization was incorrect as well, causing problems in sat networks with > 1sec RTT - Get rid of magic numbers in RTT calculations. --- sys/netinet/sctp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/sctp_input.c') diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 85cfeed..adc4ce9 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -2319,7 +2319,7 @@ sctp_handle_ecn_echo(struct sctp_ecne_chunk *cp, if (net->ssthresh < net->mtu) { net->ssthresh = net->mtu; /* here back off the timer as well, to slow us down */ - net->RTO <<= 2; + net->RTO <<= 1; } net->cwnd = net->ssthresh; #ifdef SCTP_CWND_MONITOR -- cgit v1.1