summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_constants.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2013-07-05 10:08:49 +0000
committertuexen <tuexen@FreeBSD.org>2013-07-05 10:08:49 +0000
commit9e48e2f73a10ded3bbf5de8195a8d7201aba54c4 (patch)
tree24f76f667f91a8f94ea6f08b0b93c699153065e7 /sys/netinet/sctp_constants.h
parentf53995138b4a591d14ebadc723e8258c91b0a0dd (diff)
downloadFreeBSD-src-9e48e2f73a10ded3bbf5de8195a8d7201aba54c4.zip
FreeBSD-src-9e48e2f73a10ded3bbf5de8195a8d7201aba54c4.tar.gz
Fix a bug were only 2048 streams where usable even though more than
2048 streams were negotiated on the wire. While there, remove the hard coded limit of 2048 streams. MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r--sys/netinet/sctp_constants.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h
index dd6b6b2..58ca808 100644
--- a/sys/netinet/sctp_constants.h
+++ b/sys/netinet/sctp_constants.h
@@ -521,9 +521,6 @@ __FBSDID("$FreeBSD$");
/* How long a cookie lives in milli-seconds */
#define SCTP_DEFAULT_COOKIE_LIFE 60000
-/* resource limit of streams */
-#define MAX_SCTP_STREAMS 2048
-
/* Maximum the mapping array will grow to (TSN mapping array) */
#define SCTP_MAPPING_ARRAY 512
@@ -658,6 +655,7 @@ __FBSDID("$FreeBSD$");
/* How many streams I request initally by default */
#define SCTP_OSTREAM_INITIAL 10
+#define SCTP_ISTREAM_INITIAL 2048
/*
* How many smallest_mtu's need to increase before a window update sack is
OpenPOWER on IntegriCloud