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
129#define SCTP_STREAM_SCHEDULER_VALUE 124129#define SCTP_STREAM_SCHEDULER_VALUE 124
130#define SCTP_INTERLEAVING_SUPPORTED 125130#define SCTP_INTERLEAVING_SUPPORTED 125
131#define SCTP_SENDMSG_CONNECT 126131#define SCTP_SENDMSG_CONNECT 126
132#define SCTP_EVENT 127
132 133
133/* PR-SCTP policies */134/* PR-SCTP policies */
134#define SCTP_PR_SCTP_NONE 0x0000135#define SCTP_PR_SCTP_NONE 0x0000
@@ -1154,6 +1155,12 @@ struct sctp_add_streams { · 1019 unmodified lines
1154 uint16_t sas_outstrms;1155 uint16_t sas_outstrms;
1155};1156};
1156 1157
1158struct sctp_event {
1159 sctp_assoc_t se_assoc_id;
1160 uint16_t se_type;
1161 uint8_t se_on;
1162};
1163
1157/* SCTP Stream schedulers */1164/* SCTP Stream schedulers */
1158enum sctp_sched_type {1165enum sctp_sched_type {
1159 SCTP_SS_FCFS,1166 SCTP_SS_FCFS,