summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_input.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-06-08 10:57:11 +0000
committerrrs <rrs@FreeBSD.org>2007-06-08 10:57:11 +0000
commit9708f201776b19df8dda84648daf1fa51f897810 (patch)
tree080c7b0a0e79e1c2b2a76fb02e5ac7e8b95c2b25 /sys/netinet/sctp_input.c
parent651b3690ab2575a29446b886c1db5ca7421d4f96 (diff)
downloadFreeBSD-src-9708f201776b19df8dda84648daf1fa51f897810.zip
FreeBSD-src-9708f201776b19df8dda84648daf1fa51f897810.tar.gz
- 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.
Diffstat (limited to 'sys/netinet/sctp_input.c')
-rw-r--r--sys/netinet/sctp_input.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud