dcsctp: Add handover state for received MIDs
The next expected MID to use (which applies to both ordered and unordered streams, in contrast to SSNs) was properly handed over for streams this socket sends on, but not for streams this socket receives on. Adding handover state first. Bug: webrtc:41481008 Change-Id: Ib3941f0ee1a34c24605792d9f0b658bb6a9ade4a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/369821 Commit-Queue: Victor Boivie <boivie@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43469}
This commit is contained in:
parent
b4d09df6c2
commit
58562a8229
@ -67,9 +67,11 @@ struct DcSctpSocketHandoverState {
|
||||
struct OrderedStream {
|
||||
uint32_t id = 0;
|
||||
uint32_t next_ssn = 0;
|
||||
uint32_t next_mid = 0;
|
||||
};
|
||||
struct UnorderedStream {
|
||||
uint32_t id = 0;
|
||||
uint32_t next_mid = 0;
|
||||
};
|
||||
struct Receive {
|
||||
bool seen_packet = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user