From 1b4d8ff7078df45ea320bed9f3467000f464aea6 Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Thu, 18 Aug 2022 21:12:31 +0000 Subject: [PATCH] dcsctp: Add handover state for stream counts To allow the transport to be able to know which ranges of stream identifiers it can be use, the negotiated incoming/inbound and outgoing/outbound stream counts will be exposed. This is first added to handover state, with the actual implementation to follow. Bug: webrtc:14277 Change-Id: Idd821ecbd8fcb588c88d69f617889318b4b03d43 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272320 Reviewed-by: Florent Castelli Commit-Queue: Victor Boivie Cr-Commit-Position: refs/heads/main@{#37863} --- 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 36fc37ba89..253f4da939 100644 --- a/net/dcsctp/public/dcsctp_handover_state.h +++ b/net/dcsctp/public/dcsctp_handover_state.h @@ -40,6 +40,8 @@ struct DcSctpSocketHandoverState { bool partial_reliability = false; bool message_interleaving = false; bool reconfig = false; + uint16_t negotiated_maximum_incoming_streams = 0; + uint16_t negotiated_maximum_outgoing_streams = 0; }; Capabilities capabilities;