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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -129,6 +129,7 @@ typedef __s32 sctp_assoc_t; · 128 unmodified lines | ||
| 129 | 129 | #define SCTP_STREAM_SCHEDULER_VALUE 124 |
| 130 | 130 | #define SCTP_INTERLEAVING_SUPPORTED 125 |
| 131 | 131 | #define SCTP_SENDMSG_CONNECT 126 |
| 132 | +#define SCTP_EVENT 127 | |
| 132 | 133 | |
| 133 | 134 | /* PR-SCTP policies */ |
| 134 | 135 | #define SCTP_PR_SCTP_NONE 0x0000 |
| @@ -1154,6 +1155,12 @@ struct sctp_add_streams { · 1019 unmodified lines | ||
| 1154 | 1155 | uint16_t sas_outstrms; |
| 1155 | 1156 | }; |
| 1156 | 1157 | |
| 1158 | +struct sctp_event { | |
| 1159 | + sctp_assoc_t se_assoc_id; | |
| 1160 | + uint16_t se_type; | |
| 1161 | + uint8_t se_on; | |
| 1162 | +}; | |
| 1163 | + | |
| 1157 | 1164 | /* SCTP Stream schedulers */ |
| 1158 | 1165 | enum sctp_sched_type { |
| 1159 | 1166 | SCTP_SS_FCFS, |