summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sctp.h
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner2017-10-04 00:20:15 +0200
committerDavid S. Miller2017-10-04 01:27:29 +0200
commit0ccdf3c7fdeda511b10def19505178a9d2d3fccd (patch)
tree1db44b2bd6edbce191461a3ee0cb3622e19de2ba /include/uapi/linux/sctp.h
parentsctp: add sockopt to get/set stream scheduler (diff)
downloadkernel-qcow2-linux-0ccdf3c7fdeda511b10def19505178a9d2d3fccd.tar.gz
kernel-qcow2-linux-0ccdf3c7fdeda511b10def19505178a9d2d3fccd.tar.xz
kernel-qcow2-linux-0ccdf3c7fdeda511b10def19505178a9d2d3fccd.zip
sctp: add sockopt to get/set stream scheduler parameters
As defined per RFC Draft ndata Section 4.3.3, named as SCTP_STREAM_SCHEDULER_VALUE. See-also: https://tools.ietf.org/html/draft-ietf-tsvwg-sctp-ndata-13 Tested-by: Xin Long <lucien.xin@gmail.com> Signed-off-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h
index 0050f10087d2..00ac417d2c4f 100644
--- a/include/uapi/linux/sctp.h
+++ b/include/uapi/linux/sctp.h
@@ -123,6 +123,7 @@ typedef __s32 sctp_assoc_t;
#define SCTP_ADD_STREAMS 121
#define SCTP_SOCKOPT_PEELOFF_FLAGS 122
#define SCTP_STREAM_SCHEDULER 123
+#define SCTP_STREAM_SCHEDULER_VALUE 124
/* PR-SCTP policies */
#define SCTP_PR_SCTP_NONE 0x0000
@@ -815,6 +816,12 @@ struct sctp_assoc_value {
uint32_t assoc_value;
};
+struct sctp_stream_value {
+ sctp_assoc_t assoc_id;
+ uint16_t stream_id;
+ uint16_t stream_value;
+};
+
/*
* 7.2.2 Peer Address Information
*