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_timer.h | |
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_timer.h')
-rw-r--r-- | sys/netinet/sctp_timer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctp_timer.h b/sys/netinet/sctp_timer.h index 15a7f08..e284084 100644 --- a/sys/netinet/sctp_timer.h +++ b/sys/netinet/sctp_timer.h @@ -37,6 +37,9 @@ __FBSDID("$FreeBSD$"); #if defined(_KERNEL) +#define SCTP_RTT_SHIFT 3 +#define SCTP_RTT_VAR_SHIFT 2 + void sctp_early_fr_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net); |