commit | 78aa5cd35958e7db8dbe0fa1fa8d41223e93dbab | [log] [tgz] |
---|---|---|
author | Victor Boivie <boivie@webrtc.org> | Tue Apr 13 21:42:39 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 16 14:42:44 2021 |
tree | 7bf54cf926804b849de9c778e9ec198f3f90e94c | |
parent | 7af57c6e4888001890b80f6dabf241da10fbc63c [diff] |
dcsctp: Ensure packet size doesn't exceed MTU Due to a previous refactoring, the SCTP packet header is only added when the first chunk is written. This wasn't reflected in the `bytes_remaining`, which made it add more than could fit within the MTU. Additionally, the maximum packet size must be even divisible by four as padding will be added to chunks that are not even divisble by four (up to three bytes of padding). So compensate for that. Bug: webrtc:12614 Change-Id: I6b57dfbf88d1fcfcbf443038915dd180e796191a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215145 Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Florent Castelli <orphis@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33760}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.