diff options
author | Moonchild <moonchild@palemoon.org> | 2020-05-06 10:54:14 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-06 19:03:23 +0200 |
commit | 1ed84ac1f81b096c10751d75edabc3e8e03f563a (patch) | |
tree | 07ceccc16e2caab41b4df65ef55b2c1e82f7b9b0 /netwerk/sctp/datachannel/DataChannel.cpp | |
parent | 9c9d04e3e06fe63661be78fecc7d555a29a09085 (diff) | |
download | UXP-1ed84ac1f81b096c10751d75edabc3e8e03f563a.tar UXP-1ed84ac1f81b096c10751d75edabc3e8e03f563a.tar.gz UXP-1ed84ac1f81b096c10751d75edabc3e8e03f563a.tar.lz UXP-1ed84ac1f81b096c10751d75edabc3e8e03f563a.tar.xz UXP-1ed84ac1f81b096c10751d75edabc3e8e03f563a.zip |
[WebRTC] Port some upstream sctp fixes
- add SCTP auth token boundary check.
- turn off SCTP auth and address reconfiguration.
Diffstat (limited to 'netwerk/sctp/datachannel/DataChannel.cpp')
-rw-r--r-- | netwerk/sctp/datachannel/DataChannel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index 19be43d1c..4797353ca 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -354,6 +354,13 @@ DataChannelConnection::Init(unsigned short aPort, uint16_t aNumStreams, bool aUs usrsctp_sysctl_set_sctp_blackhole(2); // ECN is currently not supported by the Firefox code usrsctp_sysctl_set_sctp_ecn_enable(0); + + // Disabling authentication and dynamic address reconfiguration as neither + // of them are used for data channel and only result in additional code + // paths being used. + usrsctp_sysctl_set_sctp_asconf_enable(0); + usrsctp_sysctl_set_sctp_auth_enable(0); + sctp_initialized = true; RefPtr<DataChannelShutdown> shutdown = new DataChannelShutdown(); |