blob: 760309df8f15ac20999a4c766d549f84a871bd56 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_SCTP_H
8#define _UAPI_SCTP_H
9#include <linux/types.h>
10#include <linux/socket.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011typedef __s32 sctp_assoc_t;
Christopher Ferris24f97eb2019-05-20 12:58:13 -070012#define SCTP_FUTURE_ASSOC 0
13#define SCTP_CURRENT_ASSOC 1
14#define SCTP_ALL_ASSOC 2
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define SCTP_RTOINFO 0
16#define SCTP_ASSOCINFO 1
17#define SCTP_INITMSG 2
Ben Cheng655a7c02013-10-16 16:09:24 -070018#define SCTP_NODELAY 3
19#define SCTP_AUTOCLOSE 4
20#define SCTP_SET_PEER_PRIMARY_ADDR 5
21#define SCTP_PRIMARY_ADDR 6
Ben Cheng655a7c02013-10-16 16:09:24 -070022#define SCTP_ADAPTATION_LAYER 7
23#define SCTP_DISABLE_FRAGMENTS 8
24#define SCTP_PEER_ADDR_PARAMS 9
25#define SCTP_DEFAULT_SEND_PARAM 10
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define SCTP_EVENTS 11
27#define SCTP_I_WANT_MAPPED_V4_ADDR 12
28#define SCTP_MAXSEG 13
29#define SCTP_STATUS 14
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define SCTP_GET_PEER_ADDR_INFO 15
31#define SCTP_DELAYED_ACK_TIME 16
32#define SCTP_DELAYED_ACK SCTP_DELAYED_ACK_TIME
33#define SCTP_DELAYED_SACK SCTP_DELAYED_ACK_TIME
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define SCTP_CONTEXT 17
35#define SCTP_FRAGMENT_INTERLEAVE 18
36#define SCTP_PARTIAL_DELIVERY_POINT 19
37#define SCTP_MAX_BURST 20
Ben Cheng655a7c02013-10-16 16:09:24 -070038#define SCTP_AUTH_CHUNK 21
39#define SCTP_HMAC_IDENT 22
40#define SCTP_AUTH_KEY 23
41#define SCTP_AUTH_ACTIVE_KEY 24
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define SCTP_AUTH_DELETE_KEY 25
43#define SCTP_PEER_AUTH_CHUNKS 26
44#define SCTP_LOCAL_AUTH_CHUNKS 27
45#define SCTP_GET_ASSOC_NUMBER 28
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define SCTP_GET_ASSOC_ID_LIST 29
47#define SCTP_AUTO_ASCONF 30
48#define SCTP_PEER_ADDR_THLDS 31
Christopher Ferris82d75042015-01-26 10:57:07 -080049#define SCTP_RECVRCVINFO 32
Christopher Ferris82d75042015-01-26 10:57:07 -080050#define SCTP_RECVNXTINFO 33
51#define SCTP_DEFAULT_SNDINFO 34
Christopher Ferris76a1d452018-06-27 14:12:29 -070052#define SCTP_AUTH_DEACTIVATE_KEY 35
Christopher Ferris9ce28842018-10-25 12:11:39 -070053#define SCTP_REUSE_PORT 36
Christopher Ferrisd32ca142020-02-04 16:16:51 -080054#define SCTP_PEER_ADDR_THLDS_V2 37
Christopher Ferris82d75042015-01-26 10:57:07 -080055#define SCTP_SOCKOPT_BINDX_ADD 100
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define SCTP_SOCKOPT_BINDX_REM 101
57#define SCTP_SOCKOPT_PEELOFF 102
58#define SCTP_SOCKOPT_CONNECTX_OLD 107
59#define SCTP_GET_PEER_ADDRS 108
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define SCTP_GET_LOCAL_ADDRS 109
61#define SCTP_SOCKOPT_CONNECTX 110
62#define SCTP_SOCKOPT_CONNECTX3 111
63#define SCTP_GET_ASSOC_STATS 112
Christopher Ferris49f525c2016-12-12 14:55:36 -080064#define SCTP_PR_SUPPORTED 113
Christopher Ferris49f525c2016-12-12 14:55:36 -080065#define SCTP_DEFAULT_PRINFO 114
66#define SCTP_PR_ASSOC_STATUS 115
Christopher Ferris525ce912017-07-26 13:12:53 -070067#define SCTP_PR_STREAM_STATUS 116
68#define SCTP_RECONFIG_SUPPORTED 117
69#define SCTP_ENABLE_STREAM_RESET 118
70#define SCTP_RESET_STREAMS 119
71#define SCTP_RESET_ASSOC 120
72#define SCTP_ADD_STREAMS 121
Christopher Ferris1308ad32017-11-14 17:32:13 -080073#define SCTP_SOCKOPT_PEELOFF_FLAGS 122
Christopher Ferris934ec942018-01-31 15:29:16 -080074#define SCTP_STREAM_SCHEDULER 123
75#define SCTP_STREAM_SCHEDULER_VALUE 124
Christopher Ferris76a1d452018-06-27 14:12:29 -070076#define SCTP_INTERLEAVING_SUPPORTED 125
77#define SCTP_SENDMSG_CONNECT 126
Christopher Ferrisd842e432019-03-07 10:21:59 -080078#define SCTP_EVENT 127
Christopher Ferris9584fa42019-12-09 15:36:13 -080079#define SCTP_ASCONF_SUPPORTED 128
80#define SCTP_AUTH_SUPPORTED 129
81#define SCTP_ECN_SUPPORTED 130
Christopher Ferrisd32ca142020-02-04 16:16:51 -080082#define SCTP_EXPOSE_POTENTIALLY_FAILED_STATE 131
83#define SCTP_EXPOSE_PF_STATE SCTP_EXPOSE_POTENTIALLY_FAILED_STATE
Christopher Ferris05667cd2021-02-16 16:01:34 -080084#define SCTP_REMOTE_UDP_ENCAPS_PORT 132
Christopher Ferris3a39c0b2021-09-02 00:03:38 +000085#define SCTP_PLPMTUD_PROBE_INTERVAL 133
Christopher Ferris49f525c2016-12-12 14:55:36 -080086#define SCTP_PR_SCTP_NONE 0x0000
87#define SCTP_PR_SCTP_TTL 0x0010
Christopher Ferris49f525c2016-12-12 14:55:36 -080088#define SCTP_PR_SCTP_RTX 0x0020
89#define SCTP_PR_SCTP_PRIO 0x0030
90#define SCTP_PR_SCTP_MAX SCTP_PR_SCTP_PRIO
91#define SCTP_PR_SCTP_MASK 0x0030
Christopher Ferris49f525c2016-12-12 14:55:36 -080092#define __SCTP_PR_INDEX(x) ((x >> 4) - 1)
93#define SCTP_PR_INDEX(x) __SCTP_PR_INDEX(SCTP_PR_SCTP_ ##x)
94#define SCTP_PR_POLICY(x) ((x) & SCTP_PR_SCTP_MASK)
95#define SCTP_PR_SET_POLICY(flags,x) do { flags &= ~SCTP_PR_SCTP_MASK; flags |= x; } while(0)
Christopher Ferris49f525c2016-12-12 14:55:36 -080096#define SCTP_PR_TTL_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_TTL)
97#define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX)
98#define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO)
Christopher Ferris525ce912017-07-26 13:12:53 -070099#define SCTP_ENABLE_RESET_STREAM_REQ 0x01
100#define SCTP_ENABLE_RESET_ASSOC_REQ 0x02
101#define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x04
102#define SCTP_ENABLE_STRRESET_MASK 0x07
103#define SCTP_STREAM_RESET_INCOMING 0x01
104#define SCTP_STREAM_RESET_OUTGOING 0x02
Christopher Ferris82d75042015-01-26 10:57:07 -0800105enum sctp_msg_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800106 MSG_NOTIFICATION = 0x8000,
Christopher Ferris82d75042015-01-26 10:57:07 -0800107#define MSG_NOTIFICATION MSG_NOTIFICATION
108};
Ben Cheng655a7c02013-10-16 16:09:24 -0700109struct sctp_initmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800110 __u16 sinit_num_ostreams;
111 __u16 sinit_max_instreams;
112 __u16 sinit_max_attempts;
113 __u16 sinit_max_init_timeo;
Ben Cheng655a7c02013-10-16 16:09:24 -0700114};
115struct sctp_sndrcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800116 __u16 sinfo_stream;
117 __u16 sinfo_ssn;
Tao Baod7db5942015-01-28 10:07:51 -0800118 __u16 sinfo_flags;
119 __u32 sinfo_ppid;
120 __u32 sinfo_context;
121 __u32 sinfo_timetolive;
Tao Baod7db5942015-01-28 10:07:51 -0800122 __u32 sinfo_tsn;
123 __u32 sinfo_cumtsn;
124 sctp_assoc_t sinfo_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800125};
Christopher Ferris82d75042015-01-26 10:57:07 -0800126struct sctp_sndinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800127 __u16 snd_sid;
128 __u16 snd_flags;
129 __u32 snd_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800130 __u32 snd_context;
131 sctp_assoc_t snd_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800132};
133struct sctp_rcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u16 rcv_sid;
135 __u16 rcv_ssn;
136 __u16 rcv_flags;
137 __u32 rcv_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800138 __u32 rcv_tsn;
139 __u32 rcv_cumtsn;
140 __u32 rcv_context;
141 sctp_assoc_t rcv_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700142};
Christopher Ferris82d75042015-01-26 10:57:07 -0800143struct sctp_nxtinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u16 nxt_sid;
145 __u16 nxt_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800146 __u32 nxt_ppid;
147 __u32 nxt_length;
148 sctp_assoc_t nxt_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800149};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700150struct sctp_prinfo {
151 __u16 pr_policy;
152 __u32 pr_value;
153};
154struct sctp_authinfo {
155 __u16 auth_keynumber;
156};
Christopher Ferris82d75042015-01-26 10:57:07 -0800157enum sctp_sinfo_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800158 SCTP_UNORDERED = (1 << 0),
159 SCTP_ADDR_OVER = (1 << 1),
160 SCTP_ABORT = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800161 SCTP_SACK_IMMEDIATELY = (1 << 3),
Christopher Ferris76a1d452018-06-27 14:12:29 -0700162 SCTP_SENDALL = (1 << 6),
Christopher Ferris9ce28842018-10-25 12:11:39 -0700163 SCTP_PR_SCTP_ALL = (1 << 7),
Tao Baod7db5942015-01-28 10:07:51 -0800164 SCTP_NOTIFICATION = MSG_NOTIFICATION,
165 SCTP_EOF = MSG_FIN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700166};
Ben Cheng655a7c02013-10-16 16:09:24 -0700167typedef union {
Tao Baod7db5942015-01-28 10:07:51 -0800168 __u8 raw;
169 struct sctp_initmsg init;
170 struct sctp_sndrcvinfo sndrcv;
Ben Cheng655a7c02013-10-16 16:09:24 -0700171} sctp_cmsg_data_t;
172typedef enum sctp_cmsg_type {
Tao Baod7db5942015-01-28 10:07:51 -0800173 SCTP_INIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define SCTP_INIT SCTP_INIT
Tao Baod7db5942015-01-28 10:07:51 -0800175 SCTP_SNDRCV,
Ben Cheng655a7c02013-10-16 16:09:24 -0700176#define SCTP_SNDRCV SCTP_SNDRCV
Tao Baod7db5942015-01-28 10:07:51 -0800177 SCTP_SNDINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800178#define SCTP_SNDINFO SCTP_SNDINFO
Tao Baod7db5942015-01-28 10:07:51 -0800179 SCTP_RCVINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800180#define SCTP_RCVINFO SCTP_RCVINFO
Tao Baod7db5942015-01-28 10:07:51 -0800181 SCTP_NXTINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800182#define SCTP_NXTINFO SCTP_NXTINFO
Christopher Ferris76a1d452018-06-27 14:12:29 -0700183 SCTP_PRINFO,
184#define SCTP_PRINFO SCTP_PRINFO
185 SCTP_AUTHINFO,
186#define SCTP_AUTHINFO SCTP_AUTHINFO
187 SCTP_DSTADDRV4,
188#define SCTP_DSTADDRV4 SCTP_DSTADDRV4
189 SCTP_DSTADDRV6,
190#define SCTP_DSTADDRV6 SCTP_DSTADDRV6
Ben Cheng655a7c02013-10-16 16:09:24 -0700191} sctp_cmsg_t;
192struct sctp_assoc_change {
Tao Baod7db5942015-01-28 10:07:51 -0800193 __u16 sac_type;
194 __u16 sac_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800195 __u32 sac_length;
196 __u16 sac_state;
197 __u16 sac_error;
198 __u16 sac_outbound_streams;
Tao Baod7db5942015-01-28 10:07:51 -0800199 __u16 sac_inbound_streams;
200 sctp_assoc_t sac_assoc_id;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700201 __u8 sac_info[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700202};
203enum sctp_sac_state {
Tao Baod7db5942015-01-28 10:07:51 -0800204 SCTP_COMM_UP,
205 SCTP_COMM_LOST,
206 SCTP_RESTART,
Tao Baod7db5942015-01-28 10:07:51 -0800207 SCTP_SHUTDOWN_COMP,
208 SCTP_CANT_STR_ASSOC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700209};
210struct sctp_paddr_change {
Tao Baod7db5942015-01-28 10:07:51 -0800211 __u16 spc_type;
212 __u16 spc_flags;
213 __u32 spc_length;
214 struct sockaddr_storage spc_aaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800215 int spc_state;
216 int spc_error;
217 sctp_assoc_t spc_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218} __attribute__((packed, aligned(4)));
219enum sctp_spc_state {
Tao Baod7db5942015-01-28 10:07:51 -0800220 SCTP_ADDR_AVAILABLE,
221 SCTP_ADDR_UNREACHABLE,
222 SCTP_ADDR_REMOVED,
Tao Baod7db5942015-01-28 10:07:51 -0800223 SCTP_ADDR_ADDED,
224 SCTP_ADDR_MADE_PRIM,
225 SCTP_ADDR_CONFIRMED,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800226 SCTP_ADDR_POTENTIALLY_FAILED,
227#define SCTP_ADDR_PF SCTP_ADDR_POTENTIALLY_FAILED
Ben Cheng655a7c02013-10-16 16:09:24 -0700228};
229struct sctp_remote_error {
Tao Baod7db5942015-01-28 10:07:51 -0800230 __u16 sre_type;
231 __u16 sre_flags;
232 __u32 sre_length;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800233 __be16 sre_error;
Tao Baod7db5942015-01-28 10:07:51 -0800234 sctp_assoc_t sre_assoc_id;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700235 __u8 sre_data[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700236};
237struct sctp_send_failed {
Tao Baod7db5942015-01-28 10:07:51 -0800238 __u16 ssf_type;
239 __u16 ssf_flags;
240 __u32 ssf_length;
Tao Baod7db5942015-01-28 10:07:51 -0800241 __u32 ssf_error;
242 struct sctp_sndrcvinfo ssf_info;
243 sctp_assoc_t ssf_assoc_id;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700244 __u8 ssf_data[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700245};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800246struct sctp_send_failed_event {
247 __u16 ssf_type;
248 __u16 ssf_flags;
249 __u32 ssf_length;
250 __u32 ssf_error;
251 struct sctp_sndinfo ssfe_info;
252 sctp_assoc_t ssf_assoc_id;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700253 __u8 ssf_data[];
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800254};
Ben Cheng655a7c02013-10-16 16:09:24 -0700255enum sctp_ssf_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800256 SCTP_DATA_UNSENT,
257 SCTP_DATA_SENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700258};
259struct sctp_shutdown_event {
Tao Baod7db5942015-01-28 10:07:51 -0800260 __u16 sse_type;
261 __u16 sse_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800262 __u32 sse_length;
263 sctp_assoc_t sse_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700264};
265struct sctp_adaptation_event {
Tao Baod7db5942015-01-28 10:07:51 -0800266 __u16 sai_type;
267 __u16 sai_flags;
268 __u32 sai_length;
269 __u32 sai_adaptation_ind;
Tao Baod7db5942015-01-28 10:07:51 -0800270 sctp_assoc_t sai_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700271};
Ben Cheng655a7c02013-10-16 16:09:24 -0700272struct sctp_pdapi_event {
Tao Baod7db5942015-01-28 10:07:51 -0800273 __u16 pdapi_type;
Tao Baod7db5942015-01-28 10:07:51 -0800274 __u16 pdapi_flags;
275 __u32 pdapi_length;
276 __u32 pdapi_indication;
277 sctp_assoc_t pdapi_assoc_id;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700278 __u32 pdapi_stream;
279 __u32 pdapi_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700280};
Tao Baod7db5942015-01-28 10:07:51 -0800281enum {
282 SCTP_PARTIAL_DELIVERY_ABORTED = 0,
283};
Ben Cheng655a7c02013-10-16 16:09:24 -0700284struct sctp_authkey_event {
Tao Baod7db5942015-01-28 10:07:51 -0800285 __u16 auth_type;
286 __u16 auth_flags;
287 __u32 auth_length;
Tao Baod7db5942015-01-28 10:07:51 -0800288 __u16 auth_keynumber;
289 __u16 auth_altkeynumber;
290 __u32 auth_indication;
291 sctp_assoc_t auth_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700292};
Tao Baod7db5942015-01-28 10:07:51 -0800293enum {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700294 SCTP_AUTH_NEW_KEY,
295#define SCTP_AUTH_NEWKEY SCTP_AUTH_NEW_KEY
296 SCTP_AUTH_FREE_KEY,
297 SCTP_AUTH_NO_AUTH,
Tao Baod7db5942015-01-28 10:07:51 -0800298};
Ben Cheng655a7c02013-10-16 16:09:24 -0700299struct sctp_sender_dry_event {
Tao Baod7db5942015-01-28 10:07:51 -0800300 __u16 sender_dry_type;
301 __u16 sender_dry_flags;
302 __u32 sender_dry_length;
Tao Baod7db5942015-01-28 10:07:51 -0800303 sctp_assoc_t sender_dry_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700304};
Christopher Ferris525ce912017-07-26 13:12:53 -0700305#define SCTP_STREAM_RESET_INCOMING_SSN 0x0001
306#define SCTP_STREAM_RESET_OUTGOING_SSN 0x0002
307#define SCTP_STREAM_RESET_DENIED 0x0004
308#define SCTP_STREAM_RESET_FAILED 0x0008
309struct sctp_stream_reset_event {
310 __u16 strreset_type;
311 __u16 strreset_flags;
312 __u32 strreset_length;
313 sctp_assoc_t strreset_assoc_id;
314 __u16 strreset_stream_list[];
315};
316#define SCTP_ASSOC_RESET_DENIED 0x0004
317#define SCTP_ASSOC_RESET_FAILED 0x0008
318struct sctp_assoc_reset_event {
319 __u16 assocreset_type;
320 __u16 assocreset_flags;
321 __u32 assocreset_length;
322 sctp_assoc_t assocreset_assoc_id;
323 __u32 assocreset_local_tsn;
324 __u32 assocreset_remote_tsn;
325};
326#define SCTP_ASSOC_CHANGE_DENIED 0x0004
327#define SCTP_ASSOC_CHANGE_FAILED 0x0008
Christopher Ferris86a48372019-01-10 14:14:59 -0800328#define SCTP_STREAM_CHANGE_DENIED SCTP_ASSOC_CHANGE_DENIED
329#define SCTP_STREAM_CHANGE_FAILED SCTP_ASSOC_CHANGE_FAILED
Christopher Ferris525ce912017-07-26 13:12:53 -0700330struct sctp_stream_change_event {
331 __u16 strchange_type;
332 __u16 strchange_flags;
333 __u32 strchange_length;
334 sctp_assoc_t strchange_assoc_id;
335 __u16 strchange_instrms;
336 __u16 strchange_outstrms;
337};
Ben Cheng655a7c02013-10-16 16:09:24 -0700338struct sctp_event_subscribe {
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u8 sctp_data_io_event;
Tao Baod7db5942015-01-28 10:07:51 -0800340 __u8 sctp_association_event;
341 __u8 sctp_address_event;
342 __u8 sctp_send_failure_event;
343 __u8 sctp_peer_error_event;
Tao Baod7db5942015-01-28 10:07:51 -0800344 __u8 sctp_shutdown_event;
345 __u8 sctp_partial_delivery_event;
346 __u8 sctp_adaptation_layer_event;
347 __u8 sctp_authentication_event;
Tao Baod7db5942015-01-28 10:07:51 -0800348 __u8 sctp_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700349 __u8 sctp_stream_reset_event;
350 __u8 sctp_assoc_reset_event;
351 __u8 sctp_stream_change_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800352 __u8 sctp_send_failure_event_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700353};
Ben Cheng655a7c02013-10-16 16:09:24 -0700354union sctp_notification {
Tao Baod7db5942015-01-28 10:07:51 -0800355 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800356 __u16 sn_type;
357 __u16 sn_flags;
358 __u32 sn_length;
359 } sn_header;
Tao Baod7db5942015-01-28 10:07:51 -0800360 struct sctp_assoc_change sn_assoc_change;
361 struct sctp_paddr_change sn_paddr_change;
362 struct sctp_remote_error sn_remote_error;
363 struct sctp_send_failed sn_send_failed;
Tao Baod7db5942015-01-28 10:07:51 -0800364 struct sctp_shutdown_event sn_shutdown_event;
365 struct sctp_adaptation_event sn_adaptation_event;
366 struct sctp_pdapi_event sn_pdapi_event;
367 struct sctp_authkey_event sn_authkey_event;
Tao Baod7db5942015-01-28 10:07:51 -0800368 struct sctp_sender_dry_event sn_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700369 struct sctp_stream_reset_event sn_strreset_event;
370 struct sctp_assoc_reset_event sn_assocreset_event;
371 struct sctp_stream_change_event sn_strchange_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800372 struct sctp_send_failed_event sn_send_failed_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700373};
Ben Cheng655a7c02013-10-16 16:09:24 -0700374enum sctp_sn_type {
Tao Baod7db5942015-01-28 10:07:51 -0800375 SCTP_SN_TYPE_BASE = (1 << 15),
Christopher Ferrisd842e432019-03-07 10:21:59 -0800376 SCTP_DATA_IO_EVENT = SCTP_SN_TYPE_BASE,
377#define SCTP_DATA_IO_EVENT SCTP_DATA_IO_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800378 SCTP_ASSOC_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700379#define SCTP_ASSOC_CHANGE SCTP_ASSOC_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800380 SCTP_PEER_ADDR_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700381#define SCTP_PEER_ADDR_CHANGE SCTP_PEER_ADDR_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800382 SCTP_SEND_FAILED,
Ben Cheng655a7c02013-10-16 16:09:24 -0700383#define SCTP_SEND_FAILED SCTP_SEND_FAILED
Tao Baod7db5942015-01-28 10:07:51 -0800384 SCTP_REMOTE_ERROR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700385#define SCTP_REMOTE_ERROR SCTP_REMOTE_ERROR
Tao Baod7db5942015-01-28 10:07:51 -0800386 SCTP_SHUTDOWN_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700387#define SCTP_SHUTDOWN_EVENT SCTP_SHUTDOWN_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800388 SCTP_PARTIAL_DELIVERY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700389#define SCTP_PARTIAL_DELIVERY_EVENT SCTP_PARTIAL_DELIVERY_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800390 SCTP_ADAPTATION_INDICATION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700391#define SCTP_ADAPTATION_INDICATION SCTP_ADAPTATION_INDICATION
Tao Baod7db5942015-01-28 10:07:51 -0800392 SCTP_AUTHENTICATION_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700393#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800394 SCTP_SENDER_DRY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700395#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT
Christopher Ferris525ce912017-07-26 13:12:53 -0700396 SCTP_STREAM_RESET_EVENT,
397#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT
398 SCTP_ASSOC_RESET_EVENT,
399#define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT
400 SCTP_STREAM_CHANGE_EVENT,
401#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800402 SCTP_SEND_FAILED_EVENT,
403#define SCTP_SEND_FAILED_EVENT SCTP_SEND_FAILED_EVENT
404 SCTP_SN_TYPE_MAX = SCTP_SEND_FAILED_EVENT,
Christopher Ferrisd842e432019-03-07 10:21:59 -0800405#define SCTP_SN_TYPE_MAX SCTP_SN_TYPE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700406};
407typedef enum sctp_sn_error {
Tao Baod7db5942015-01-28 10:07:51 -0800408 SCTP_FAILED_THRESHOLD,
409 SCTP_RECEIVED_SACK,
410 SCTP_HEARTBEAT_SUCCESS,
411 SCTP_RESPONSE_TO_USER_REQ,
Tao Baod7db5942015-01-28 10:07:51 -0800412 SCTP_INTERNAL_ERROR,
413 SCTP_SHUTDOWN_GUARD_EXPIRES,
414 SCTP_PEER_FAULTY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700415} sctp_sn_error_t;
416struct sctp_rtoinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800417 sctp_assoc_t srto_assoc_id;
418 __u32 srto_initial;
419 __u32 srto_max;
Tao Baod7db5942015-01-28 10:07:51 -0800420 __u32 srto_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700421};
Ben Cheng655a7c02013-10-16 16:09:24 -0700422struct sctp_assocparams {
Tao Baod7db5942015-01-28 10:07:51 -0800423 sctp_assoc_t sasoc_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u16 sasoc_asocmaxrxt;
425 __u16 sasoc_number_peer_destinations;
426 __u32 sasoc_peer_rwnd;
427 __u32 sasoc_local_rwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800428 __u32 sasoc_cookie_life;
Ben Cheng655a7c02013-10-16 16:09:24 -0700429};
Ben Cheng655a7c02013-10-16 16:09:24 -0700430struct sctp_setpeerprim {
Tao Baod7db5942015-01-28 10:07:51 -0800431 sctp_assoc_t sspp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800432 struct sockaddr_storage sspp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700433} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700434struct sctp_prim {
Tao Baod7db5942015-01-28 10:07:51 -0800435 sctp_assoc_t ssp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800436 struct sockaddr_storage ssp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700437} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700438#define sctp_setprim sctp_prim
439struct sctp_setadaptation {
Tao Baod7db5942015-01-28 10:07:51 -0800440 __u32 ssb_adaptation_ind;
Ben Cheng655a7c02013-10-16 16:09:24 -0700441};
Ben Cheng655a7c02013-10-16 16:09:24 -0700442enum sctp_spp_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800443 SPP_HB_ENABLE = 1 << 0,
Tao Baod7db5942015-01-28 10:07:51 -0800444 SPP_HB_DISABLE = 1 << 1,
445 SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE,
446 SPP_HB_DEMAND = 1 << 2,
447 SPP_PMTUD_ENABLE = 1 << 3,
Tao Baod7db5942015-01-28 10:07:51 -0800448 SPP_PMTUD_DISABLE = 1 << 4,
449 SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE,
450 SPP_SACKDELAY_ENABLE = 1 << 5,
451 SPP_SACKDELAY_DISABLE = 1 << 6,
Tao Baod7db5942015-01-28 10:07:51 -0800452 SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE,
453 SPP_HB_TIME_IS_ZERO = 1 << 7,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700454 SPP_IPV6_FLOWLABEL = 1 << 8,
455 SPP_DSCP = 1 << 9,
Ben Cheng655a7c02013-10-16 16:09:24 -0700456};
457struct sctp_paddrparams {
Tao Baod7db5942015-01-28 10:07:51 -0800458 sctp_assoc_t spp_assoc_id;
459 struct sockaddr_storage spp_address;
460 __u32 spp_hbinterval;
461 __u16 spp_pathmaxrxt;
Tao Baod7db5942015-01-28 10:07:51 -0800462 __u32 spp_pathmtu;
463 __u32 spp_sackdelay;
464 __u32 spp_flags;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700465 __u32 spp_ipv6_flowlabel;
466 __u8 spp_dscp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700467} __attribute__((packed, aligned(4)));
468struct sctp_authchunk {
Tao Baod7db5942015-01-28 10:07:51 -0800469 __u8 sauth_chunk;
Ben Cheng655a7c02013-10-16 16:09:24 -0700470};
471enum {
Tao Baod7db5942015-01-28 10:07:51 -0800472 SCTP_AUTH_HMAC_ID_SHA1 = 1,
473 SCTP_AUTH_HMAC_ID_SHA256 = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -0700474};
475struct sctp_hmacalgo {
Tao Baod7db5942015-01-28 10:07:51 -0800476 __u32 shmac_num_idents;
477 __u16 shmac_idents[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700478};
479#define shmac_number_of_idents shmac_num_idents
480struct sctp_authkey {
Tao Baod7db5942015-01-28 10:07:51 -0800481 sctp_assoc_t sca_assoc_id;
482 __u16 sca_keynumber;
483 __u16 sca_keylength;
Tao Baod7db5942015-01-28 10:07:51 -0800484 __u8 sca_key[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700485};
Ben Cheng655a7c02013-10-16 16:09:24 -0700486struct sctp_authkeyid {
Tao Baod7db5942015-01-28 10:07:51 -0800487 sctp_assoc_t scact_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800488 __u16 scact_keynumber;
Ben Cheng655a7c02013-10-16 16:09:24 -0700489};
Ben Cheng655a7c02013-10-16 16:09:24 -0700490struct sctp_sack_info {
Tao Baod7db5942015-01-28 10:07:51 -0800491 sctp_assoc_t sack_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800492 uint32_t sack_delay;
493 uint32_t sack_freq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700494};
495struct sctp_assoc_value {
Tao Baod7db5942015-01-28 10:07:51 -0800496 sctp_assoc_t assoc_id;
497 uint32_t assoc_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700498};
Christopher Ferris934ec942018-01-31 15:29:16 -0800499struct sctp_stream_value {
500 sctp_assoc_t assoc_id;
501 uint16_t stream_id;
502 uint16_t stream_value;
503};
Ben Cheng655a7c02013-10-16 16:09:24 -0700504struct sctp_paddrinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800505 sctp_assoc_t spinfo_assoc_id;
506 struct sockaddr_storage spinfo_address;
507 __s32 spinfo_state;
508 __u32 spinfo_cwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800509 __u32 spinfo_srtt;
510 __u32 spinfo_rto;
511 __u32 spinfo_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700512} __attribute__((packed, aligned(4)));
513enum sctp_spinfo_state {
Tao Baod7db5942015-01-28 10:07:51 -0800514 SCTP_INACTIVE,
515 SCTP_PF,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800516#define SCTP_POTENTIALLY_FAILED SCTP_PF
Tao Baod7db5942015-01-28 10:07:51 -0800517 SCTP_ACTIVE,
Tao Baod7db5942015-01-28 10:07:51 -0800518 SCTP_UNCONFIRMED,
519 SCTP_UNKNOWN = 0xffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700520};
521struct sctp_status {
Tao Baod7db5942015-01-28 10:07:51 -0800522 sctp_assoc_t sstat_assoc_id;
523 __s32 sstat_state;
524 __u32 sstat_rwnd;
525 __u16 sstat_unackdata;
Tao Baod7db5942015-01-28 10:07:51 -0800526 __u16 sstat_penddata;
527 __u16 sstat_instrms;
528 __u16 sstat_outstrms;
529 __u32 sstat_fragmentation_point;
Tao Baod7db5942015-01-28 10:07:51 -0800530 struct sctp_paddrinfo sstat_primary;
Ben Cheng655a7c02013-10-16 16:09:24 -0700531};
Ben Cheng655a7c02013-10-16 16:09:24 -0700532struct sctp_authchunks {
Tao Baod7db5942015-01-28 10:07:51 -0800533 sctp_assoc_t gauth_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800534 __u32 gauth_number_of_chunks;
535 uint8_t gauth_chunks[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700536};
537#define guth_number_of_chunks gauth_number_of_chunks
538enum sctp_sstat_state {
Tao Baod7db5942015-01-28 10:07:51 -0800539 SCTP_EMPTY = 0,
540 SCTP_CLOSED = 1,
541 SCTP_COOKIE_WAIT = 2,
Tao Baod7db5942015-01-28 10:07:51 -0800542 SCTP_COOKIE_ECHOED = 3,
543 SCTP_ESTABLISHED = 4,
544 SCTP_SHUTDOWN_PENDING = 5,
545 SCTP_SHUTDOWN_SENT = 6,
Tao Baod7db5942015-01-28 10:07:51 -0800546 SCTP_SHUTDOWN_RECEIVED = 7,
547 SCTP_SHUTDOWN_ACK_SENT = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700548};
549struct sctp_assoc_ids {
Tao Baod7db5942015-01-28 10:07:51 -0800550 __u32 gaids_number_of_ids;
551 sctp_assoc_t gaids_assoc_id[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700552};
553struct sctp_getaddrs_old {
Tao Baod7db5942015-01-28 10:07:51 -0800554 sctp_assoc_t assoc_id;
555 int addr_num;
556 struct sockaddr * addrs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700557};
558struct sctp_getaddrs {
Tao Baod7db5942015-01-28 10:07:51 -0800559 sctp_assoc_t assoc_id;
560 __u32 addr_num;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700561 __u8 addrs[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700562};
563struct sctp_assoc_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800564 sctp_assoc_t sas_assoc_id;
565 struct sockaddr_storage sas_obs_rto_ipaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800566 __u64 sas_maxrto;
567 __u64 sas_isacks;
568 __u64 sas_osacks;
569 __u64 sas_opackets;
Tao Baod7db5942015-01-28 10:07:51 -0800570 __u64 sas_ipackets;
571 __u64 sas_rtxchunks;
572 __u64 sas_outofseqtsns;
573 __u64 sas_idupchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800574 __u64 sas_gapcnt;
575 __u64 sas_ouodchunks;
576 __u64 sas_iuodchunks;
577 __u64 sas_oodchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800578 __u64 sas_iodchunks;
579 __u64 sas_octrlchunks;
580 __u64 sas_ictrlchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700581};
Ben Cheng655a7c02013-10-16 16:09:24 -0700582#define SCTP_BINDX_ADD_ADDR 0x01
583#define SCTP_BINDX_REM_ADDR 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700584typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800585 sctp_assoc_t associd;
Tao Baod7db5942015-01-28 10:07:51 -0800586 int sd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700587} sctp_peeloff_arg_t;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800588typedef struct {
589 sctp_peeloff_arg_t p_arg;
590 unsigned flags;
591} sctp_peeloff_flags_arg_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700592struct sctp_paddrthlds {
Tao Baod7db5942015-01-28 10:07:51 -0800593 sctp_assoc_t spt_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800594 struct sockaddr_storage spt_address;
595 __u16 spt_pathmaxrxt;
596 __u16 spt_pathpfthld;
Ben Cheng655a7c02013-10-16 16:09:24 -0700597};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800598struct sctp_paddrthlds_v2 {
599 sctp_assoc_t spt_assoc_id;
600 struct sockaddr_storage spt_address;
601 __u16 spt_pathmaxrxt;
602 __u16 spt_pathpfthld;
603 __u16 spt_pathcpthld;
604};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800605struct sctp_prstatus {
606 sctp_assoc_t sprstat_assoc_id;
607 __u16 sprstat_sid;
608 __u16 sprstat_policy;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800609 __u64 sprstat_abandoned_unsent;
610 __u64 sprstat_abandoned_sent;
611};
612struct sctp_default_prinfo {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800613 sctp_assoc_t pr_assoc_id;
614 __u32 pr_value;
615 __u16 pr_policy;
616};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800617struct sctp_info {
618 __u32 sctpi_tag;
619 __u32 sctpi_state;
620 __u32 sctpi_rwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800621 __u16 sctpi_unackdata;
622 __u16 sctpi_penddata;
623 __u16 sctpi_instrms;
624 __u16 sctpi_outstrms;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800625 __u32 sctpi_fragmentation_point;
626 __u32 sctpi_inqueue;
627 __u32 sctpi_outqueue;
628 __u32 sctpi_overall_error;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800629 __u32 sctpi_max_burst;
630 __u32 sctpi_maxseg;
631 __u32 sctpi_peer_rwnd;
632 __u32 sctpi_peer_tag;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800633 __u8 sctpi_peer_capable;
634 __u8 sctpi_peer_sack;
635 __u16 __reserved1;
636 __u64 sctpi_isacks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800637 __u64 sctpi_osacks;
638 __u64 sctpi_opackets;
639 __u64 sctpi_ipackets;
640 __u64 sctpi_rtxchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800641 __u64 sctpi_outofseqtsns;
642 __u64 sctpi_idupchunks;
643 __u64 sctpi_gapcnt;
644 __u64 sctpi_ouodchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800645 __u64 sctpi_iuodchunks;
646 __u64 sctpi_oodchunks;
647 __u64 sctpi_iodchunks;
648 __u64 sctpi_octrlchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800649 __u64 sctpi_ictrlchunks;
650 struct sockaddr_storage sctpi_p_address;
651 __s32 sctpi_p_state;
652 __u32 sctpi_p_cwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800653 __u32 sctpi_p_srtt;
654 __u32 sctpi_p_rto;
655 __u32 sctpi_p_hbinterval;
656 __u32 sctpi_p_pathmaxrxt;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800657 __u32 sctpi_p_sackdelay;
658 __u32 sctpi_p_sackfreq;
659 __u32 sctpi_p_ssthresh;
660 __u32 sctpi_p_partial_bytes_acked;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800661 __u32 sctpi_p_flight_size;
662 __u16 sctpi_p_error;
663 __u16 __reserved2;
664 __u32 sctpi_s_autoclose;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800665 __u32 sctpi_s_adaptation_ind;
666 __u32 sctpi_s_pd_point;
667 __u8 sctpi_s_nodelay;
668 __u8 sctpi_s_disable_fragments;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800669 __u8 sctpi_s_v4mapped;
670 __u8 sctpi_s_frag_interleave;
671 __u32 sctpi_s_type;
672 __u32 __reserved3;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800673};
Christopher Ferris525ce912017-07-26 13:12:53 -0700674struct sctp_reset_streams {
675 sctp_assoc_t srs_assoc_id;
676 uint16_t srs_flags;
677 uint16_t srs_number_streams;
678 uint16_t srs_stream_list[];
679};
680struct sctp_add_streams {
681 sctp_assoc_t sas_assoc_id;
682 uint16_t sas_instrms;
683 uint16_t sas_outstrms;
684};
Christopher Ferrisd842e432019-03-07 10:21:59 -0800685struct sctp_event {
686 sctp_assoc_t se_assoc_id;
687 uint16_t se_type;
688 uint8_t se_on;
689};
Christopher Ferris05667cd2021-02-16 16:01:34 -0800690struct sctp_udpencaps {
691 sctp_assoc_t sue_assoc_id;
692 struct sockaddr_storage sue_address;
693 uint16_t sue_port;
694};
Christopher Ferris934ec942018-01-31 15:29:16 -0800695enum sctp_sched_type {
696 SCTP_SS_FCFS,
Christopher Ferris86a48372019-01-10 14:14:59 -0800697 SCTP_SS_DEFAULT = SCTP_SS_FCFS,
Christopher Ferris934ec942018-01-31 15:29:16 -0800698 SCTP_SS_PRIO,
699 SCTP_SS_RR,
Christopher Ferris37c3f3c2023-07-10 10:59:05 -0700700 SCTP_SS_FC,
701 SCTP_SS_WFQ,
702 SCTP_SS_MAX = SCTP_SS_WFQ
Christopher Ferris934ec942018-01-31 15:29:16 -0800703};
Christopher Ferris3a39c0b2021-09-02 00:03:38 +0000704struct sctp_probeinterval {
705 sctp_assoc_t spi_assoc_id;
706 struct sockaddr_storage spi_address;
707 __u32 spi_interval;
708};
Ben Cheng655a7c02013-10-16 16:09:24 -0700709#endif