History

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.

Xin Long committed 7 years ago

Commit 480ba9c1 parent 88ee48c2 files · +95 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/sctp.h+7−0
@@ -129,6 +129,7 @@ typedef __s32 sctp_assoc_t; · 128 unmodified lines
129129 #define SCTP_STREAM_SCHEDULER_VALUE 124
130130 #define SCTP_INTERLEAVING_SUPPORTED 125
131131 #define SCTP_SENDMSG_CONNECT 126
132+#define SCTP_EVENT 127
132133
133134 /* PR-SCTP policies */
134135 #define SCTP_PR_SCTP_NONE 0x0000
@@ -1154,6 +1155,12 @@ struct sctp_add_streams { · 1019 unmodified lines
11541155 uint16_t sas_outstrms;
11551156 };
11561157
1158+struct sctp_event {
1159+ sctp_assoc_t se_assoc_id;
1160+ uint16_t se_type;
1161+ uint8_t se_on;
1162+};
1163+
11571164 /* SCTP Stream schedulers */
11581165 enum sctp_sched_type {
11591166 SCTP_SS_FCFS,