summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sctp.h
diff options
context:
space:
mode:
authorXin Long2018-11-18 09:08:54 +0100
committerDavid S. Miller2018-11-19 21:25:43 +0100
commit480ba9c18a27ff77b02a2012e50dfd3e20ee9f7a (patch)
treea5cc3e157bb0035b92722d5d888b86a23781ae4a /include/uapi/linux/sctp.h
parentsctp: rename enum sctp_event to sctp_event_type (diff)
downloadkernel-qcow2-linux-480ba9c18a27ff77b02a2012e50dfd3e20ee9f7a.tar.gz
kernel-qcow2-linux-480ba9c18a27ff77b02a2012e50dfd3e20ee9f7a.tar.xz
kernel-qcow2-linux-480ba9c18a27ff77b02a2012e50dfd3e20ee9f7a.zip
sctp: add sockopt SCTP_EVENT
This patch adds sockopt SCTP_EVENT described in rfc6525#section-6.2. With this sockopt users can subscribe to an event from a specified asoc. Signed-off-by: Xin Long <lucien.xin@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 66afa5b4ab6b..d584073532b8 100644
--- a/include/uapi/linux/sctp.h
+++ b/include/uapi/linux/sctp.h
@@ -129,6 +129,7 @@ typedef __s32 sctp_assoc_t;
#define SCTP_STREAM_SCHEDULER_VALUE 124
#define SCTP_INTERLEAVING_SUPPORTED 125
#define SCTP_SENDMSG_CONNECT 126
+#define SCTP_EVENT 127
/* PR-SCTP policies */
#define SCTP_PR_SCTP_NONE 0x0000
@@ -1154,6 +1155,12 @@ struct sctp_add_streams {
uint16_t sas_outstrms;
};
+struct sctp_event {
+ sctp_assoc_t se_assoc_id;
+ uint16_t se_type;
+ uint8_t se_on;
+};
+
/* SCTP Stream schedulers */
enum sctp_sched_type {
SCTP_SS_FCFS,