summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_sysctl.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2010-09-17 18:53:07 +0000
committertuexen <tuexen@FreeBSD.org>2010-09-17 18:53:07 +0000
commit7b25487bee443fbdedc922982d86145a78dd5752 (patch)
tree24c1657427bb3240b933ccad4532bbc35e8dc8bf /sys/netinet/sctp_sysctl.h
parent6397178431575de2cebaeac5bb0c05af09367120 (diff)
downloadFreeBSD-src-7b25487bee443fbdedc922982d86145a78dd5752.zip
FreeBSD-src-7b25487bee443fbdedc922982d86145a78dd5752.tar.gz
Make the initial congestion window configurable via sysctl.
MFC after: 2 weeks.
Diffstat (limited to 'sys/netinet/sctp_sysctl.h')
-rw-r--r--sys/netinet/sctp_sysctl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/sctp_sysctl.h b/sys/netinet/sctp_sysctl.h
index e52f40d..99ecd03 100644
--- a/sys/netinet/sctp_sysctl.h
+++ b/sys/netinet/sctp_sysctl.h
@@ -108,6 +108,7 @@ struct sctp_sysctl {
uint32_t sctp_enable_sack_immediately;
uint32_t sctp_vtag_time_wait;
uint32_t sctp_buffer_splitting;
+ uint32_t sctp_initial_cwnd;
#if defined(SCTP_DEBUG)
uint32_t sctp_debug_on;
#endif
@@ -497,6 +498,12 @@ struct sctp_sysctl {
#define SCTPCTL_BUFFER_SPLITTING_MAX 0x3
#define SCTPCTL_BUFFER_SPLITTING_DEFAULT SCTPCTL_BUFFER_SPLITTING_MIN
+/* Initial congestion window in MTU */
+#define SCTPCTL_INITIAL_CWND_DESC "Initial congestion window in MTU"
+#define SCTPCTL_INITIAL_CWND_MIN 2
+#define SCTPCTL_INITIAL_CWND_MAX 0xffffffff
+#define SCTPCTL_INITIAL_CWND_DEFAULT 3
+
#if defined(SCTP_DEBUG)
/* debug: Configure debug output */
#define SCTPCTL_DEBUG_DESC "Configure debug output"
OpenPOWER on IntegriCloud