diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-02-09 01:18:20 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-09 16:57:38 -0500 |
commit | 242bd2d519d7194633e309286ba7ba29a1ad63e8 (patch) | |
tree | cda37b0df90dff6a18070f3330da80183f6456e5 /include/uapi/linux/sctp.h | |
parent | 78098117f8bfad4f2104c3f7b6b69071af95a246 (diff) | |
download | linux-242bd2d519d7194633e309286ba7ba29a1ad63e8.tar.gz linux-242bd2d519d7194633e309286ba7ba29a1ad63e8.tar.bz2 linux-242bd2d519d7194633e309286ba7ba29a1ad63e8.zip |
sctp: implement sender-side procedures for Add Incoming/Outgoing Streams Request Parameter
This patch is to implement Sender-Side Procedures for the Add
Outgoing and Incoming Streams Request Parameter described in
rfc6525 section 5.1.5-5.1.6.
It is also to add sockopt SCTP_ADD_STREAMS in rfc6525 section
6.3.4 for users.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/sctp.h')
-rw-r--r-- | include/uapi/linux/sctp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h index c0bd8c3d565a..a91a9cccbae6 100644 --- a/include/uapi/linux/sctp.h +++ b/include/uapi/linux/sctp.h @@ -118,6 +118,7 @@ typedef __s32 sctp_assoc_t; #define SCTP_ENABLE_STREAM_RESET 118 #define SCTP_RESET_STREAMS 119 #define SCTP_RESET_ASSOC 120 +#define SCTP_ADD_STREAMS 121 /* PR-SCTP policies */ #define SCTP_PR_SCTP_NONE 0x0000 @@ -1027,4 +1028,10 @@ struct sctp_reset_streams { uint16_t srs_stream_list[]; /* list if srs_num_streams is not 0 */ }; +struct sctp_add_streams { + sctp_assoc_t sas_assoc_id; + uint16_t sas_instrms; + uint16_t sas_outstrms; +}; + #endif /* _UAPI_SCTP_H */ |