diff options
author | rrs <rrs@FreeBSD.org> | 2007-06-08 10:57:11 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2007-06-08 10:57:11 +0000 |
commit | 9708f201776b19df8dda84648daf1fa51f897810 (patch) | |
tree | 080c7b0a0e79e1c2b2a76fb02e5ac7e8b95c2b25 /sys/netinet/sctp_asconf.c | |
parent | 651b3690ab2575a29446b886c1db5ca7421d4f96 (diff) | |
download | FreeBSD-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_asconf.c')
-rw-r--r-- | sys/netinet/sctp_asconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c index 932ba5a..b2c932c 100644 --- a/sys/netinet/sctp_asconf.c +++ b/sys/netinet/sctp_asconf.c @@ -1794,7 +1794,7 @@ sctp_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb, void *ptr, * address? */ sctp_set_initial_cc_param(stcb, net); - net->RTO = stcb->asoc.initial_rto; + net->RTO = 0; } } |