From 58562a8229948d7f76b1eb77fe1da1edac60f133 Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Fri, 29 Nov 2024 08:29:35 +0100 Subject: [PATCH] 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 Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/main@{#43469} --- net/dcsctp/public/dcsctp_handover_state.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/dcsctp/public/dcsctp_handover_state.h b/net/dcsctp/public/dcsctp_handover_state.h index f277ebc02c..8cc8096cde 100644 --- a/net/dcsctp/public/dcsctp_handover_state.h +++ b/net/dcsctp/public/dcsctp_handover_state.h @@ -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;