mediasoup 3.20.0 → 3.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lib/Consumer.d.ts.map +1 -1
- package/node/lib/Consumer.js +5 -4
- package/node/lib/DataConsumer.d.ts +2 -3
- package/node/lib/DataConsumer.d.ts.map +1 -1
- package/node/lib/DataConsumer.js +10 -7
- package/node/lib/DataConsumerTypes.d.ts +5 -4
- package/node/lib/DataConsumerTypes.d.ts.map +1 -1
- package/node/lib/DataProducer.d.ts.map +1 -1
- package/node/lib/DataProducer.js +2 -1
- package/node/lib/PipeTransport.d.ts.map +1 -1
- package/node/lib/PipeTransport.js +5 -4
- package/node/lib/PlainTransport.d.ts.map +1 -1
- package/node/lib/PlainTransport.js +6 -5
- package/node/lib/Producer.d.ts.map +1 -1
- package/node/lib/Producer.js +4 -3
- package/node/lib/Router.js +1 -1
- package/node/lib/WebRtcTransport.d.ts.map +1 -1
- package/node/lib/WebRtcTransport.js +6 -5
- package/node/lib/fbs/consumer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/degrade-request.js +124 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +24 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.js +102 -0
- package/node/lib/fbs/data-consumer/send-response.d.ts +21 -0
- package/node/lib/fbs/data-consumer/send-response.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/send-response.js +91 -0
- package/node/lib/fbs/data-consumer.d.ts +1 -0
- package/node/lib/fbs/data-consumer.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer.js +4 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/producer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/producer/degrade-request.js +124 -0
- package/node/lib/fbs/response/body.d.ts +7 -5
- package/node/lib/fbs/response/body.d.ts.map +1 -1
- package/node/lib/fbs/response/body.js +7 -3
- package/node/lib/fbs/response/response.d.ts +3 -2
- package/node/lib/fbs/response/response.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +24 -0
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +1 -0
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +102 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +24 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +1 -0
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +102 -0
- package/node/lib/fbs/worker/close-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-notification.js +78 -0
- package/node/lib/fbs/worker/close-request.d.ts +18 -0
- package/node/lib/fbs/worker/close-request.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-request.js +78 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-worker-notification.js +78 -0
- package/node/lib/sctpParametersTypes.d.ts +23 -0
- package/node/lib/sctpParametersTypes.d.ts.map +1 -1
- package/node/lib/test/test-Consumer.js +194 -0
- package/node/lib/test/test-DataConsumer.js +6 -0
- package/node/lib/test/test-Router.js +11 -0
- package/node/lib/test/test-werift-sctp.js +7 -0
- package/npm-scripts.mjs +2 -2
- package/package.json +7 -6
- package/worker/Makefile +5 -1
- package/worker/deps/libwebrtc/meson.build +5 -1
- package/worker/fbs/dataConsumer.fbs +4 -0
- package/worker/fbs/response.fbs +1 -0
- package/worker/fuzzer/src/RTC/RTP/FuzzerPacket.cpp +2 -2
- package/worker/include/Channel/ChannelMessageRegistrator.hpp +4 -3
- package/worker/include/Channel/ChannelNotification.hpp +0 -4
- package/worker/include/Channel/ChannelRequest.hpp +3 -4
- package/worker/include/DepLibSRTP.hpp +2 -2
- package/worker/include/RTC/ActiveSpeakerObserver.hpp +2 -2
- package/worker/include/RTC/AudioLevelObserver.hpp +2 -2
- package/worker/include/RTC/Consumer.hpp +1 -1
- package/worker/include/RTC/DataConsumer.hpp +2 -2
- package/worker/include/RTC/DtlsTransport.hpp +4 -4
- package/worker/include/RTC/ICE/IceServer.hpp +2 -2
- package/worker/include/RTC/ICE/StunPacket.hpp +34 -34
- package/worker/include/RTC/KeyFrameRequestManager.hpp +3 -3
- package/worker/include/RTC/Parameters.hpp +2 -2
- package/worker/include/RTC/PipeConsumer.hpp +6 -5
- package/worker/include/RTC/PlainTransport.hpp +0 -1
- package/worker/include/RTC/PortManager.hpp +92 -12
- package/worker/include/RTC/Producer.hpp +7 -6
- package/worker/include/RTC/RTCP/Feedback.hpp +1 -2
- package/worker/include/RTC/RTCP/FeedbackRtpTransport.hpp +2 -2
- package/worker/include/RTC/RTCP/Packet.hpp +2 -2
- package/worker/include/RTC/RTCP/Sdes.hpp +1 -1
- package/worker/include/RTC/RTP/Codecs/DependencyDescriptor.hpp +2 -1
- package/worker/include/RTC/RTP/Packet.hpp +57 -57
- package/worker/include/RTC/RTP/ProbationGenerator.hpp +2 -2
- package/worker/include/RTC/RTP/SharedPacket.hpp +4 -4
- package/worker/include/RTC/Router.hpp +12 -11
- package/worker/include/RTC/RtcLogger.hpp +2 -2
- package/worker/include/RTC/RtpDictionaries.hpp +6 -6
- package/worker/include/RTC/RtpListener.hpp +4 -4
- package/worker/include/RTC/SCTP/association/Association.hpp +13 -13
- package/worker/include/RTC/SCTP/association/HeartbeatHandler.hpp +2 -2
- package/worker/include/RTC/SCTP/association/NegotiatedCapabilities.hpp +2 -2
- package/worker/include/RTC/SCTP/association/PacketSender.hpp +3 -3
- package/worker/include/RTC/SCTP/association/StateCookie.hpp +9 -9
- package/worker/include/RTC/SCTP/association/StreamResetHandler.hpp +4 -4
- package/worker/include/RTC/SCTP/association/TransmissionControlBlock.hpp +24 -24
- package/worker/include/RTC/SCTP/association/TransmissionControlBlockContextInterface.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/Chunk.hpp +86 -86
- package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +18 -18
- package/worker/include/RTC/SCTP/packet/Packet.hpp +33 -33
- package/worker/include/RTC/SCTP/packet/Parameter.hpp +24 -24
- package/worker/include/RTC/SCTP/packet/TLV.hpp +13 -13
- package/worker/include/RTC/SCTP/packet/UserData.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/chunks/AbortAssociationChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/AnyDataChunk.hpp +9 -9
- package/worker/include/RTC/SCTP/packet/chunks/AnyForwardTsnChunk.hpp +3 -3
- package/worker/include/RTC/SCTP/packet/chunks/CookieAckChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/CookieEchoChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +11 -11
- package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/HeartbeatAckChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/HeartbeatRequestChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +7 -7
- package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +10 -10
- package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +8 -8
- package/worker/include/RTC/SCTP/packet/chunks/OperationErrorChunk.hpp +6 -6
- package/worker/include/RTC/SCTP/packet/chunks/ReConfigChunk.hpp +10 -10
- package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownAckChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownCompleteChunk.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/chunks/UnknownChunk.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidMandatoryParameterErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/OutOfResourceErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/ProtocolViolationErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/RestartOfAnAssociationWithNewAddressesErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/errorCauses/UnknownErrorCause.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/errorCauses/UnrecognizedChunkTypeErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UnrecognizedParametersErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UnresolvableAddressErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/errorCauses/UserInitiatedAbortErrorCause.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/ForwardTsnSupportedParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/HeartbeatInfoParameter.hpp +3 -3
- package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +7 -7
- package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/StateCookieParameter.hpp +5 -5
- package/worker/include/RTC/SCTP/packet/parameters/SupportedAddressTypesParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/SupportedExtensionsParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/UnknownParameter.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/parameters/UnrecognizedParameterParameter.hpp +4 -4
- package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +7 -7
- package/worker/include/RTC/SCTP/public/AssociationInterface.hpp +7 -7
- package/worker/include/RTC/SCTP/public/AssociationListenerInterface.hpp +26 -26
- package/worker/include/RTC/SCTP/public/AssociationMetrics.hpp +7 -7
- package/worker/include/RTC/SCTP/public/Message.hpp +1 -1
- package/worker/include/RTC/SCTP/public/SctpOptions.hpp +4 -4
- package/worker/include/RTC/SCTP/public/SctpTypes.hpp +10 -10
- package/worker/include/RTC/SCTP/rx/DataTracker.hpp +1 -1
- package/worker/include/RTC/SCTP/rx/ReassemblyStreamsInterface.hpp +1 -1
- package/worker/include/RTC/SCTP/tx/OutstandingData.hpp +39 -39
- package/worker/include/RTC/SCTP/tx/RetransmissionErrorCounter.hpp +1 -1
- package/worker/include/RTC/SCTP/tx/RetransmissionQueue.hpp +14 -14
- package/worker/include/RTC/SCTP/tx/RoundRobinSendQueue.hpp +1 -1
- package/worker/include/RTC/SctpListener.hpp +2 -2
- package/worker/include/RTC/SimulcastConsumer.hpp +2 -1
- package/worker/include/RTC/TcpServer.hpp +3 -2
- package/worker/include/RTC/Transport.hpp +8 -8
- package/worker/include/RTC/UdpSocket.hpp +3 -2
- package/worker/include/RTC/WebRtcServer.hpp +4 -5
- package/worker/include/RTC/WebRtcTransport.hpp +2 -2
- package/worker/include/Settings.hpp +3 -3
- package/worker/include/Worker.hpp +3 -3
- package/worker/include/handles/TcpServerHandle.hpp +2 -2
- package/worker/meson.build +9 -4
- package/worker/mocks/include/Channel/MockChannelMessageRegistrator.hpp +4 -3
- package/worker/src/Channel/ChannelNotification.cpp +5 -4
- package/worker/src/Channel/ChannelRequest.cpp +9 -6
- package/worker/src/DepLibSRTP.cpp +1 -1
- package/worker/src/RTC/AudioLevelObserver.cpp +2 -2
- package/worker/src/RTC/DataConsumer.cpp +13 -3
- package/worker/src/RTC/DataProducer.cpp +1 -1
- package/worker/src/RTC/DtlsTransport.cpp +3 -3
- package/worker/src/RTC/ICE/IceServer.cpp +1 -1
- package/worker/src/RTC/ICE/StunPacket.cpp +77 -77
- package/worker/src/RTC/PipeTransport.cpp +5 -4
- package/worker/src/RTC/PlainTransport.cpp +9 -8
- package/worker/src/RTC/PortManager.cpp +174 -114
- package/worker/src/RTC/Producer.cpp +0 -1
- package/worker/src/RTC/RTCP/Feedback.cpp +6 -6
- package/worker/src/RTC/RTCP/FeedbackPs.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsAfb.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsPli.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackPsRemb.cpp +2 -2
- package/worker/src/RTC/RTCP/FeedbackRtp.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackRtpSrReq.cpp +1 -1
- package/worker/src/RTC/RTCP/FeedbackRtpTransport.cpp +2 -2
- package/worker/src/RTC/RTCP/Packet.cpp +2 -2
- package/worker/src/RTC/RTCP/Sdes.cpp +1 -1
- package/worker/src/RTC/RTP/Codecs/DependencyDescriptor.cpp +2 -1
- package/worker/src/RTC/RTP/Packet.cpp +68 -68
- package/worker/src/RTC/RTP/ProbationGenerator.cpp +3 -3
- package/worker/src/RTC/RTP/RtpStreamRecv.cpp +3 -3
- package/worker/src/RTC/RTP/RtxStream.cpp +2 -2
- package/worker/src/RTC/RTP/SharedPacket.cpp +4 -4
- package/worker/src/RTC/Router.cpp +5 -5
- package/worker/src/RTC/RtcLogger.cpp +1 -1
- package/worker/src/RTC/RtpDictionaries/RtpCodecMimeType.cpp +4 -4
- package/worker/src/RTC/RtpDictionaries/RtpParameters.cpp +2 -3
- package/worker/src/RTC/SCTP/association/Association.cpp +100 -97
- package/worker/src/RTC/SCTP/association/HeartbeatHandler.cpp +6 -6
- package/worker/src/RTC/SCTP/association/NegotiatedCapabilities.cpp +3 -3
- package/worker/src/RTC/SCTP/association/PacketSender.cpp +1 -1
- package/worker/src/RTC/SCTP/association/StreamResetHandler.cpp +2 -2
- package/worker/src/RTC/SCTP/association/TransmissionControlBlock.cpp +5 -5
- package/worker/src/RTC/SCTP/packet/Chunk.cpp +52 -52
- package/worker/src/RTC/SCTP/packet/ErrorCause.cpp +14 -14
- package/worker/src/RTC/SCTP/packet/Packet.cpp +17 -17
- package/worker/src/RTC/SCTP/packet/Parameter.cpp +17 -17
- package/worker/src/RTC/SCTP/packet/TLV.cpp +8 -8
- package/worker/src/RTC/SCTP/packet/chunks/AbortAssociationChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/CookieAckChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/CookieEchoChunk.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/chunks/DataChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/HeartbeatAckChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/HeartbeatRequestChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/IDataChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/IForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/InitAckChunk.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/chunks/InitChunk.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/chunks/OperationErrorChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/ReConfigChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/SackChunk.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownAckChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/ShutdownCompleteChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/InvalidMandatoryParameterErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.cpp +4 -4
- package/worker/src/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/OutOfResourceErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/ProtocolViolationErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/RestartOfAnAssociationWithNewAddressesErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/errorCauses/UnrecognizedChunkTypeErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UnrecognizedParametersErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UnresolvableAddressErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/errorCauses/UserInitiatedAbortErrorCause.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/CookiePreservativeParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/ForwardTsnSupportedParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/HeartbeatInfoParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/IPv4AddressParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/IPv6AddressParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/parameters/StateCookieParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SupportedAddressTypesParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/packet/parameters/SupportedExtensionsParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/UnrecognizedParameterParameter.cpp +1 -1
- package/worker/src/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.cpp +3 -3
- package/worker/src/RTC/SCTP/rx/InterleavedReassemblyStreams.cpp +1 -0
- package/worker/src/RTC/SCTP/rx/TraditionalReassemblyStreams.cpp +1 -0
- package/worker/src/RTC/SCTP/tx/OutstandingData.cpp +8 -8
- package/worker/src/RTC/SCTP/tx/RoundRobinSendQueue.cpp +1 -1
- package/worker/src/RTC/SvcConsumer.cpp +6 -2
- package/worker/src/RTC/TcpServer.cpp +4 -4
- package/worker/src/RTC/Transport.cpp +42 -19
- package/worker/src/RTC/UdpSocket.cpp +4 -4
- package/worker/src/RTC/WebRtcServer.cpp +8 -8
- package/worker/src/RTC/WebRtcTransport.cpp +9 -8
- package/worker/src/Settings.cpp +2 -2
- package/worker/src/lib.cpp +1 -2
- package/worker/subprojects/packagefiles/ankerl-unordered-dense/meson.build +5 -0
- package/worker/subprojects/unordered-dense.wrap +9 -0
- package/worker/tasks.py +293 -196
- package/worker/test/src/RTC/ICE/TestStunPacket.cpp +22 -22
- package/worker/test/src/RTC/ICE/iceCommon.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpEcn.cpp +8 -8
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpNack.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpSrReq.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpTllei.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestFeedbackRtpTmmb.cpp +1 -1
- package/worker/test/src/RTC/RTCP/TestSenderReport.cpp +1 -1
- package/worker/test/src/RTC/RTP/TestPacket.cpp +26 -26
- package/worker/test/src/RTC/RTP/TestSharedPacket.cpp +1 -1
- package/worker/test/src/RTC/RTP/rtpCommon.cpp +1 -1
- package/worker/test/src/RTC/SCTP/association/TestNegotiatedCapabilities.cpp +4 -4
- package/worker/test/src/RTC/SCTP/packet/TestPacket.cpp +14 -14
- package/worker/test/src/RTC/SCTP/packet/chunks/TestAbortAssociationChunk.cpp +4 -4
- package/worker/test/src/RTC/SCTP/packet/chunks/TestCookieAckChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestCookieEchoChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestForwardTsnChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestHeartbeatAckChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestHeartbeatRequestChunk.cpp +9 -9
- package/worker/test/src/RTC/SCTP/packet/chunks/TestIDataChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/chunks/TestIForwardTsnChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestInitAckChunk.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/chunks/TestInitChunk.cpp +8 -8
- package/worker/test/src/RTC/SCTP/packet/chunks/TestOperationErrorChunk.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/chunks/TestReConfigChunk.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/chunks/TestSackChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/chunks/TestShutdownAckChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestShutdownCompleteChunk.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/chunks/TestUnknownChunk.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestCookieReceivedWhileShuttingDownErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestInvalidMandatoryParameterErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestInvalidStreamIdentifierErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestMissingMandatoryParameterErrorCause.cpp +11 -11
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestNoUserDataErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestOutOfResourceErrorCause.cpp +5 -5
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestProtocolViolationErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestRestartOfAnAssociationWithNewAddressesErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestStaleCookieErrorCause.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnknownErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnrecognizedChunkTypeErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnrecognizedParametersErrorCause.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUnresolvableAddressErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/errorCauses/TestUserInitiatedAbortErrorCause.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestAddIncomingStreamsRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestAddOutgoingStreamsRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestCookiePreservativeParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestForwardTsnSupportedParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestHeartbeatInfoParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIPv4AddressParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIPv6AddressParameter.cpp +7 -7
- package/worker/test/src/RTC/SCTP/packet/parameters/TestIncomingSsnResetRequestParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestOutgoingSsnResetRequestParameter.cpp +2 -2
- package/worker/test/src/RTC/SCTP/packet/parameters/TestReconfigurationResponseParameter.cpp +5 -5
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSsnTsnResetRequestParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestStateCookieParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSupportedAddressTypesParameter.cpp +6 -6
- package/worker/test/src/RTC/SCTP/packet/parameters/TestSupportedExtensionsParameter.cpp +3 -3
- package/worker/test/src/RTC/SCTP/packet/parameters/TestUnknownParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestUnrecognizedParameterParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/packet/parameters/TestZeroChecksumAcceptableParameter.cpp +1 -1
- package/worker/test/src/RTC/SCTP/sctpCommon.cpp +1 -1
- package/worker/test/src/RTC/SCTP/tx/TestOutstandingData.cpp +3 -3
- package/worker/test/src/RTC/SCTP/tx/TestRetransmissionQueue.cpp +1 -1
- package/worker/test/src/RTC/TestNackGenerator.cpp +1 -1
- package/worker/test/src/RTC/TestPortManager.cpp +126 -0
- package/worker/test/src/RTC/TestTransportCongestionControlServer.cpp +2 -2
- package/worker/test/src/RTC/TestTransportTuple.cpp +3 -2
- package/worker/test/src/Utils/TestCrypto.cpp +3 -3
- package/worker/test/src/Utils/TestString.cpp +1 -1
|
@@ -19,7 +19,7 @@ namespace RTC
|
|
|
19
19
|
|
|
20
20
|
if (bufferLength < TLV::TLVHeaderLength)
|
|
21
21
|
{
|
|
22
|
-
MS_WARN_TAG(sctp, "no space for
|
|
22
|
+
MS_WARN_TAG(sctp, "no space for header [bufferLength:%zu]", bufferLength);
|
|
23
23
|
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
@@ -29,14 +29,14 @@ namespace RTC
|
|
|
29
29
|
if (itemLength < TLV::TLVHeaderLength)
|
|
30
30
|
{
|
|
31
31
|
MS_WARN_TAG(
|
|
32
|
-
sctp, "
|
|
32
|
+
sctp, "length field must have value greater or equal than %zu", TLV::TLVHeaderLength);
|
|
33
33
|
|
|
34
34
|
return false;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Item total length must be multiple of 4 bytes and must include padding
|
|
38
|
-
// bytes despite item
|
|
39
|
-
// NOTE: We must cast to size_t, otherwise a maximum item
|
|
38
|
+
// bytes despite item length field does not include padding.
|
|
39
|
+
// NOTE: We must cast to size_t, otherwise a maximum item length value of
|
|
40
40
|
// 65535 would generate a padded length of 0 bytes!
|
|
41
41
|
const size_t paddedItemLength = Utils::Byte::PadTo4Bytes(size_t{ itemLength });
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ namespace RTC
|
|
|
44
44
|
{
|
|
45
45
|
MS_WARN_TAG(
|
|
46
46
|
sctp,
|
|
47
|
-
"no space for 4-byte padded announced
|
|
47
|
+
"no space for 4-byte padded announced length [paddedItemLength:%zu, bufferLength:%zu]",
|
|
48
48
|
paddedItemLength,
|
|
49
49
|
bufferLength);
|
|
50
50
|
|
|
@@ -131,7 +131,7 @@ namespace RTC
|
|
|
131
131
|
// NOTE: If there is no space in the buffer for it, it will throw.
|
|
132
132
|
SetLength(newPaddedLength);
|
|
133
133
|
|
|
134
|
-
// Update
|
|
134
|
+
// Update length field.
|
|
135
135
|
// NOTE: This will throw if computed value is too big.
|
|
136
136
|
SetLengthField(newNotPaddedLength);
|
|
137
137
|
}
|
|
@@ -161,8 +161,8 @@ namespace RTC
|
|
|
161
161
|
// NOTE: This will throw if there is no enough space in the buffer.
|
|
162
162
|
SetLength(previousLength + item->GetLength());
|
|
163
163
|
|
|
164
|
-
// Update
|
|
165
|
-
// NOTE: This will throw if computed
|
|
164
|
+
// Update length field.
|
|
165
|
+
// NOTE: This will throw if computed length field value is too big.
|
|
166
166
|
SetLengthField(previousLength + item->GetLengthField());
|
|
167
167
|
}
|
|
168
168
|
catch (const MediaSoupError& error)
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::ABORT)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,10 +60,10 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
auto* chunk = new AbortAssociationChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
62
62
|
|
|
63
|
-
// Parse
|
|
63
|
+
// Parse error causes.
|
|
64
64
|
if (!chunk->ParseErrorCauses())
|
|
65
65
|
{
|
|
66
|
-
MS_WARN_DEV("failed to parse
|
|
66
|
+
MS_WARN_DEV("failed to parse error causes");
|
|
67
67
|
|
|
68
68
|
delete chunk;
|
|
69
69
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::COOKIE_ACK)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,7 +60,7 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
if (chunkLength != Chunk::ChunkHeaderLength)
|
|
62
62
|
{
|
|
63
|
-
MS_WARN_TAG(sctp, "CookieAckChunk
|
|
63
|
+
MS_WARN_TAG(sctp, "CookieAckChunk length field must be %zu", Chunk::ChunkHeaderLength);
|
|
64
64
|
|
|
65
65
|
return nullptr;
|
|
66
66
|
}
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::DATA)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -69,7 +69,7 @@ namespace RTC
|
|
|
69
69
|
{
|
|
70
70
|
MS_WARN_TAG(
|
|
71
71
|
sctp,
|
|
72
|
-
"DataChunk
|
|
72
|
+
"DataChunk length field must be equal or greater than %zu",
|
|
73
73
|
DataChunk::DataChunkHeaderLength);
|
|
74
74
|
|
|
75
75
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::FORWARD_TSN)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
{
|
|
68
68
|
MS_WARN_TAG(
|
|
69
69
|
sctp,
|
|
70
|
-
"ForwardTsnChunk
|
|
70
|
+
"ForwardTsnChunk length field must be equal or greater than %zu",
|
|
71
71
|
ForwardTsnChunk::ForwardTsnChunkHeaderLength);
|
|
72
72
|
|
|
73
73
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::HEARTBEAT_ACK)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,10 +60,10 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
auto* chunk = new HeartbeatAckChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
62
62
|
|
|
63
|
-
// Parse
|
|
63
|
+
// Parse parameters.
|
|
64
64
|
if (!chunk->ParseParameters())
|
|
65
65
|
{
|
|
66
|
-
MS_WARN_DEV("failed to parse
|
|
66
|
+
MS_WARN_DEV("failed to parse parameters");
|
|
67
67
|
|
|
68
68
|
delete chunk;
|
|
69
69
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::HEARTBEAT_REQUEST)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,10 +60,10 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
auto* chunk = new HeartbeatRequestChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
62
62
|
|
|
63
|
-
// Parse
|
|
63
|
+
// Parse parameters.
|
|
64
64
|
if (!chunk->ParseParameters())
|
|
65
65
|
{
|
|
66
|
-
MS_WARN_DEV("failed to parse
|
|
66
|
+
MS_WARN_DEV("failed to parse parameters");
|
|
67
67
|
|
|
68
68
|
delete chunk;
|
|
69
69
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::I_DATA)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -71,7 +71,7 @@ namespace RTC
|
|
|
71
71
|
{
|
|
72
72
|
MS_WARN_TAG(
|
|
73
73
|
sctp,
|
|
74
|
-
"IDataChunk
|
|
74
|
+
"IDataChunk length field must be equal or greater than %zu",
|
|
75
75
|
IDataChunk::IDataChunkHeaderLength);
|
|
76
76
|
|
|
77
77
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::I_FORWARD_TSN)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
{
|
|
68
68
|
MS_WARN_TAG(
|
|
69
69
|
sctp,
|
|
70
|
-
"IForwardTsnChunk
|
|
70
|
+
"IForwardTsnChunk length field must be equal or greater than %zu",
|
|
71
71
|
IForwardTsnChunk::IForwardTsnChunkHeaderLength);
|
|
72
72
|
|
|
73
73
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::INIT_ACK)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -70,7 +70,7 @@ namespace RTC
|
|
|
70
70
|
{
|
|
71
71
|
MS_WARN_TAG(
|
|
72
72
|
sctp,
|
|
73
|
-
"InitAckChunk
|
|
73
|
+
"InitAckChunk length field must be equal or greater than %zu",
|
|
74
74
|
InitAckChunk::InitAckChunkHeaderLength);
|
|
75
75
|
|
|
76
76
|
return nullptr;
|
|
@@ -78,10 +78,10 @@ namespace RTC
|
|
|
78
78
|
|
|
79
79
|
auto* chunk = new InitAckChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
80
80
|
|
|
81
|
-
// Parse
|
|
81
|
+
// Parse parameters.
|
|
82
82
|
if (!chunk->ParseParameters())
|
|
83
83
|
{
|
|
84
|
-
MS_WARN_DEV("failed to parse
|
|
84
|
+
MS_WARN_DEV("failed to parse parameters");
|
|
85
85
|
|
|
86
86
|
delete chunk;
|
|
87
87
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (chunkType != Chunk::ChunkType::INIT)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid chunk type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -70,7 +70,7 @@ namespace RTC
|
|
|
70
70
|
{
|
|
71
71
|
MS_WARN_TAG(
|
|
72
72
|
sctp,
|
|
73
|
-
"InitChunk
|
|
73
|
+
"InitChunk length field must be equal or greater than %zu",
|
|
74
74
|
InitChunk::InitChunkHeaderLength);
|
|
75
75
|
|
|
76
76
|
return nullptr;
|
|
@@ -78,10 +78,10 @@ namespace RTC
|
|
|
78
78
|
|
|
79
79
|
auto* chunk = new InitChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
80
80
|
|
|
81
|
-
// Parse
|
|
81
|
+
// Parse parameters.
|
|
82
82
|
if (!chunk->ParseParameters())
|
|
83
83
|
{
|
|
84
|
-
MS_WARN_DEV("failed to parse
|
|
84
|
+
MS_WARN_DEV("failed to parse parameters");
|
|
85
85
|
|
|
86
86
|
delete chunk;
|
|
87
87
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::OPERATION_ERROR)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,10 +60,10 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
auto* chunk = new OperationErrorChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
62
62
|
|
|
63
|
-
// Parse
|
|
63
|
+
// Parse error causes.
|
|
64
64
|
if (!chunk->ParseErrorCauses())
|
|
65
65
|
{
|
|
66
|
-
MS_WARN_DEV("failed to parse
|
|
66
|
+
MS_WARN_DEV("failed to parse error causes");
|
|
67
67
|
|
|
68
68
|
delete chunk;
|
|
69
69
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::RE_CONFIG)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,10 +60,10 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
auto* chunk = new ReConfigChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
62
62
|
|
|
63
|
-
// Parse
|
|
63
|
+
// Parse parameters.
|
|
64
64
|
if (!chunk->ParseParameters())
|
|
65
65
|
{
|
|
66
|
-
MS_WARN_DEV("failed to parse
|
|
66
|
+
MS_WARN_DEV("failed to parse parameters");
|
|
67
67
|
|
|
68
68
|
delete chunk;
|
|
69
69
|
return nullptr;
|
|
@@ -28,7 +28,7 @@ namespace RTC
|
|
|
28
28
|
|
|
29
29
|
if (chunkType != Chunk::ChunkType::SACK)
|
|
30
30
|
{
|
|
31
|
-
MS_WARN_DEV("invalid
|
|
31
|
+
MS_WARN_DEV("invalid chunk type");
|
|
32
32
|
|
|
33
33
|
return nullptr;
|
|
34
34
|
}
|
|
@@ -70,7 +70,7 @@ namespace RTC
|
|
|
70
70
|
{
|
|
71
71
|
MS_WARN_TAG(
|
|
72
72
|
sctp,
|
|
73
|
-
"SackChunk
|
|
73
|
+
"SackChunk length field must be equal or greater than %zu",
|
|
74
74
|
SackChunk::SackChunkHeaderLength);
|
|
75
75
|
|
|
76
76
|
return nullptr;
|
|
@@ -78,7 +78,7 @@ namespace RTC
|
|
|
78
78
|
|
|
79
79
|
auto* chunk = new SackChunk(const_cast<uint8_t*>(buffer), bufferLength);
|
|
80
80
|
|
|
81
|
-
// In this
|
|
81
|
+
// In this chunk we must validate that some fields have correct values.
|
|
82
82
|
if (
|
|
83
83
|
(chunk->GetNumberOfGapAckBlocks() * 4) + (chunk->GetNumberOfDuplicateTsns() * 4) !=
|
|
84
84
|
chunkLength - SackChunk::SackChunkHeaderLength)
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::SHUTDOWN_ACK)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,7 +60,7 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
if (chunkLength != Chunk::ChunkHeaderLength)
|
|
62
62
|
{
|
|
63
|
-
MS_WARN_TAG(sctp, "ShutdownAckChunk
|
|
63
|
+
MS_WARN_TAG(sctp, "ShutdownAckChunk length field must be %zu", Chunk::ChunkHeaderLength);
|
|
64
64
|
|
|
65
65
|
return nullptr;
|
|
66
66
|
}
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::SHUTDOWN)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -64,7 +64,7 @@ namespace RTC
|
|
|
64
64
|
if (chunkLength != ShutdownChunk::ShutdownChunkHeaderLength)
|
|
65
65
|
{
|
|
66
66
|
MS_WARN_TAG(
|
|
67
|
-
sctp, "ShutdownChunk
|
|
67
|
+
sctp, "ShutdownChunk length field must be %zu", ShutdownChunk::ShutdownChunkHeaderLength);
|
|
68
68
|
|
|
69
69
|
return nullptr;
|
|
70
70
|
}
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (chunkType != Chunk::ChunkType::SHUTDOWN_COMPLETE)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid chunk type");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -60,7 +60,7 @@ namespace RTC
|
|
|
60
60
|
|
|
61
61
|
if (chunkLength != Chunk::ChunkHeaderLength)
|
|
62
62
|
{
|
|
63
|
-
MS_WARN_TAG(sctp, "ShutdownCompleteChunk
|
|
63
|
+
MS_WARN_TAG(sctp, "ShutdownCompleteChunk length field must be %zu", Chunk::ChunkHeaderLength);
|
|
64
64
|
|
|
65
65
|
return nullptr;
|
|
66
66
|
}
|
package/worker/src/RTC/SCTP/packet/errorCauses/CookieReceivedWhileShuttingDownErrorCause.cpp
CHANGED
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (causeCode != ErrorCause::ErrorCauseCode::COOKIE_RECEIVED_WHILE_SHUTTING_DOWN)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid error cause code");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -66,7 +66,7 @@ namespace RTC
|
|
|
66
66
|
{
|
|
67
67
|
MS_WARN_TAG(
|
|
68
68
|
sctp,
|
|
69
|
-
"CookieReceivedWhileShuttingDownErrorCause
|
|
69
|
+
"CookieReceivedWhileShuttingDownErrorCause length field must be %zu",
|
|
70
70
|
ErrorCause::ErrorCauseHeaderLength);
|
|
71
71
|
|
|
72
72
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (causeCode != ErrorCause::ErrorCauseCode::INVALID_MANDATORY_PARAMETER)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid error cause code");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -65,7 +65,7 @@ namespace RTC
|
|
|
65
65
|
{
|
|
66
66
|
MS_WARN_TAG(
|
|
67
67
|
sctp,
|
|
68
|
-
"InvalidMandatoryParameterErrorCause
|
|
68
|
+
"InvalidMandatoryParameterErrorCause length field must be %zu",
|
|
69
69
|
ErrorCause::ErrorCauseHeaderLength);
|
|
70
70
|
|
|
71
71
|
return nullptr;
|
|
@@ -28,7 +28,7 @@ namespace RTC
|
|
|
28
28
|
|
|
29
29
|
if (causeCode != ErrorCause::ErrorCauseCode::INVALID_STREAM_IDENTIFIER)
|
|
30
30
|
{
|
|
31
|
-
MS_WARN_DEV("invalid
|
|
31
|
+
MS_WARN_DEV("invalid error cause code");
|
|
32
32
|
|
|
33
33
|
return nullptr;
|
|
34
34
|
}
|
|
@@ -71,7 +71,7 @@ namespace RTC
|
|
|
71
71
|
{
|
|
72
72
|
MS_WARN_TAG(
|
|
73
73
|
sctp,
|
|
74
|
-
"InvalidStreamIdentifierErrorCause
|
|
74
|
+
"InvalidStreamIdentifierErrorCause length field must be %zu",
|
|
75
75
|
InvalidStreamIdentifierErrorCause::InvalidStreamIdentifierErrorCauseHeaderLength);
|
|
76
76
|
|
|
77
77
|
return nullptr;
|
|
@@ -29,7 +29,7 @@ namespace RTC
|
|
|
29
29
|
|
|
30
30
|
if (causeCode != ErrorCause::ErrorCauseCode::MISSING_MANDATORY_PARAMETER)
|
|
31
31
|
{
|
|
32
|
-
MS_WARN_DEV("invalid
|
|
32
|
+
MS_WARN_DEV("invalid error cause code");
|
|
33
33
|
|
|
34
34
|
return nullptr;
|
|
35
35
|
}
|
|
@@ -71,7 +71,7 @@ namespace RTC
|
|
|
71
71
|
{
|
|
72
72
|
MS_WARN_TAG(
|
|
73
73
|
sctp,
|
|
74
|
-
"MissingMandatoryParameterErrorCause
|
|
74
|
+
"MissingMandatoryParameterErrorCause length field must be equal or greater than %zu",
|
|
75
75
|
MissingMandatoryParameterErrorCause::MissingMandatoryParameterErrorCauseHeaderLength);
|
|
76
76
|
|
|
77
77
|
return nullptr;
|
|
@@ -80,13 +80,13 @@ namespace RTC
|
|
|
80
80
|
auto* errorCause =
|
|
81
81
|
new MissingMandatoryParameterErrorCause(const_cast<uint8_t*>(buffer), bufferLength);
|
|
82
82
|
|
|
83
|
-
// In this
|
|
83
|
+
// In this chunk we must validate that some fields have correct values.
|
|
84
84
|
if (
|
|
85
85
|
(errorCause->GetNumberOfMissingParameters() * 2) !=
|
|
86
86
|
causeLength -
|
|
87
87
|
MissingMandatoryParameterErrorCause::MissingMandatoryParameterErrorCauseHeaderLength)
|
|
88
88
|
{
|
|
89
|
-
MS_WARN_TAG(sctp, "wrong values in Number of Missing
|
|
89
|
+
MS_WARN_TAG(sctp, "wrong values in Number of Missing parameters field");
|
|
90
90
|
|
|
91
91
|
delete errorCause;
|
|
92
92
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (causeCode != ErrorCause::ErrorCauseCode::NO_USER_DATA)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid error cause code");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
{
|
|
68
68
|
MS_WARN_TAG(
|
|
69
69
|
sctp,
|
|
70
|
-
"NoUserDataErrorCause
|
|
70
|
+
"NoUserDataErrorCause length field must be %zu",
|
|
71
71
|
NoUserDataErrorCause::NoUserDataErrorCauseHeaderLength);
|
|
72
72
|
|
|
73
73
|
return nullptr;
|
|
@@ -26,7 +26,7 @@ namespace RTC
|
|
|
26
26
|
|
|
27
27
|
if (causeCode != ErrorCause::ErrorCauseCode::OUT_OF_RESOURCE)
|
|
28
28
|
{
|
|
29
|
-
MS_WARN_DEV("invalid
|
|
29
|
+
MS_WARN_DEV("invalid error cause code");
|
|
30
30
|
|
|
31
31
|
return nullptr;
|
|
32
32
|
}
|
|
@@ -61,7 +61,7 @@ namespace RTC
|
|
|
61
61
|
if (causeLength != ErrorCause::ErrorCauseHeaderLength)
|
|
62
62
|
{
|
|
63
63
|
MS_WARN_TAG(
|
|
64
|
-
sctp, "OutOfResourceErrorCause
|
|
64
|
+
sctp, "OutOfResourceErrorCause length field must be %zu", ErrorCause::ErrorCauseHeaderLength);
|
|
65
65
|
|
|
66
66
|
return nullptr;
|
|
67
67
|
}
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (causeCode != ErrorCause::ErrorCauseCode::STALE_COOKIE)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid error cause code");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -67,7 +67,7 @@ namespace RTC
|
|
|
67
67
|
{
|
|
68
68
|
MS_WARN_TAG(
|
|
69
69
|
sctp,
|
|
70
|
-
"StaleCookieErrorCause
|
|
70
|
+
"StaleCookieErrorCause length field must be %zu",
|
|
71
71
|
StaleCookieErrorCause::StaleCookieErrorCauseHeaderLength);
|
|
72
72
|
|
|
73
73
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (parameterType != Parameter::ParameterType::ADD_INCOMING_STREAMS_REQUEST)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid parameter type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -71,7 +71,7 @@ namespace RTC
|
|
|
71
71
|
{
|
|
72
72
|
MS_WARN_TAG(
|
|
73
73
|
sctp,
|
|
74
|
-
"AddIncomingStreamsRequestParameter
|
|
74
|
+
"AddIncomingStreamsRequestParameter length field must be %zu",
|
|
75
75
|
AddIncomingStreamsRequestParameter::AddIncomingStreamsRequestParameterHeaderLength);
|
|
76
76
|
|
|
77
77
|
return nullptr;
|
|
@@ -27,7 +27,7 @@ namespace RTC
|
|
|
27
27
|
|
|
28
28
|
if (parameterType != Parameter::ParameterType::ADD_OUTGOING_STREAMS_REQUEST)
|
|
29
29
|
{
|
|
30
|
-
MS_WARN_DEV("invalid
|
|
30
|
+
MS_WARN_DEV("invalid parameter type");
|
|
31
31
|
|
|
32
32
|
return nullptr;
|
|
33
33
|
}
|
|
@@ -71,7 +71,7 @@ namespace RTC
|
|
|
71
71
|
{
|
|
72
72
|
MS_WARN_TAG(
|
|
73
73
|
sctp,
|
|
74
|
-
"AddOutgoingStreamsRequestParameter
|
|
74
|
+
"AddOutgoingStreamsRequestParameter length field must be %zu",
|
|
75
75
|
AddOutgoingStreamsRequestParameter::AddOutgoingStreamsRequestParameterHeaderLength);
|
|
76
76
|
|
|
77
77
|
return nullptr;
|