summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <scarot@twilio.com>2017-08-03 13:50:02 (GMT)
committerPer-Erik Brodin <per-erik.brodin@ericsson.com>2017-08-07 07:31:17 (GMT)
commit983e070cb8b38db91ebb39358f8d32a8aa0d7d13 (patch)
tree626201737dbd8170390ec64430572099dee65d57
parent9975eaacda248fcc19654d23e067a6d283f175fb (diff)
downloadopenwebrtc-gst-plugins-983e070cb8b38db91ebb39358f8d32a8aa0d7d13.tar.gz
openwebrtc-gst-plugins-983e070cb8b38db91ebb39358f8d32a8aa0d7d13.tar.xz
sctpassociation: Set the number of default outgoing streams to 65536HEADmaster
This is the number that will be sent in an SCTP INIT message. This is the 'appropriate default' value defined in the second paragraph of http://tools.ietf.org/html/draft-ietf-rtcweb-data-channel-05#section-6.2
-rw-r--r--ext/sctp/sctpassociation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sctp/sctpassociation.c b/ext/sctp/sctpassociation.c
index 515ce3e..bd005e1 100644
--- a/ext/sctp/sctpassociation.c
+++ b/ext/sctp/sctpassociation.c
@@ -81,7 +81,7 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
static GParamSpec *properties[NUM_PROPERTIES];
-#define DEFAULT_NUMBER_OF_SCTP_STREAMS 10
+#define MAX_SCTP_SID UINT16_MAX
#define DEFAULT_LOCAL_SCTP_PORT 0
#define DEFAULT_REMOTE_SCTP_PORT 0
@@ -166,7 +166,7 @@ static void gst_sctp_association_init (GstSctpAssociation *self)
/* Explicit Congestion Notification */
usrsctp_sysctl_set_sctp_ecn_enable(0);
- usrsctp_sysctl_set_sctp_nr_outgoing_streams_default(DEFAULT_NUMBER_OF_SCTP_STREAMS);
+ usrsctp_sysctl_set_sctp_nr_outgoing_streams_default(MAX_SCTP_SID);
}
self->local_port = DEFAULT_LOCAL_SCTP_PORT;