blob: 883920bee589f61baa20dcb30b21705ef4ee106b [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_SCTP_H
20#define _UAPI_SCTP_H
21#include <linux/types.h>
22#include <linux/socket.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023typedef __s32 sctp_assoc_t;
Christopher Ferris24f97eb2019-05-20 12:58:13 -070024#define SCTP_FUTURE_ASSOC 0
25#define SCTP_CURRENT_ASSOC 1
26#define SCTP_ALL_ASSOC 2
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define SCTP_RTOINFO 0
28#define SCTP_ASSOCINFO 1
29#define SCTP_INITMSG 2
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define SCTP_NODELAY 3
31#define SCTP_AUTOCLOSE 4
32#define SCTP_SET_PEER_PRIMARY_ADDR 5
33#define SCTP_PRIMARY_ADDR 6
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define SCTP_ADAPTATION_LAYER 7
35#define SCTP_DISABLE_FRAGMENTS 8
36#define SCTP_PEER_ADDR_PARAMS 9
37#define SCTP_DEFAULT_SEND_PARAM 10
Ben Cheng655a7c02013-10-16 16:09:24 -070038#define SCTP_EVENTS 11
39#define SCTP_I_WANT_MAPPED_V4_ADDR 12
40#define SCTP_MAXSEG 13
41#define SCTP_STATUS 14
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define SCTP_GET_PEER_ADDR_INFO 15
43#define SCTP_DELAYED_ACK_TIME 16
44#define SCTP_DELAYED_ACK SCTP_DELAYED_ACK_TIME
45#define SCTP_DELAYED_SACK SCTP_DELAYED_ACK_TIME
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define SCTP_CONTEXT 17
47#define SCTP_FRAGMENT_INTERLEAVE 18
48#define SCTP_PARTIAL_DELIVERY_POINT 19
49#define SCTP_MAX_BURST 20
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define SCTP_AUTH_CHUNK 21
51#define SCTP_HMAC_IDENT 22
52#define SCTP_AUTH_KEY 23
53#define SCTP_AUTH_ACTIVE_KEY 24
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define SCTP_AUTH_DELETE_KEY 25
55#define SCTP_PEER_AUTH_CHUNKS 26
56#define SCTP_LOCAL_AUTH_CHUNKS 27
57#define SCTP_GET_ASSOC_NUMBER 28
Ben Cheng655a7c02013-10-16 16:09:24 -070058#define SCTP_GET_ASSOC_ID_LIST 29
59#define SCTP_AUTO_ASCONF 30
60#define SCTP_PEER_ADDR_THLDS 31
Christopher Ferris82d75042015-01-26 10:57:07 -080061#define SCTP_RECVRCVINFO 32
Christopher Ferris82d75042015-01-26 10:57:07 -080062#define SCTP_RECVNXTINFO 33
63#define SCTP_DEFAULT_SNDINFO 34
Christopher Ferris76a1d452018-06-27 14:12:29 -070064#define SCTP_AUTH_DEACTIVATE_KEY 35
Christopher Ferris9ce28842018-10-25 12:11:39 -070065#define SCTP_REUSE_PORT 36
Christopher Ferrisd32ca142020-02-04 16:16:51 -080066#define SCTP_PEER_ADDR_THLDS_V2 37
Christopher Ferris82d75042015-01-26 10:57:07 -080067#define SCTP_SOCKOPT_BINDX_ADD 100
Ben Cheng655a7c02013-10-16 16:09:24 -070068#define SCTP_SOCKOPT_BINDX_REM 101
69#define SCTP_SOCKOPT_PEELOFF 102
70#define SCTP_SOCKOPT_CONNECTX_OLD 107
71#define SCTP_GET_PEER_ADDRS 108
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define SCTP_GET_LOCAL_ADDRS 109
73#define SCTP_SOCKOPT_CONNECTX 110
74#define SCTP_SOCKOPT_CONNECTX3 111
75#define SCTP_GET_ASSOC_STATS 112
Christopher Ferris49f525c2016-12-12 14:55:36 -080076#define SCTP_PR_SUPPORTED 113
Christopher Ferris49f525c2016-12-12 14:55:36 -080077#define SCTP_DEFAULT_PRINFO 114
78#define SCTP_PR_ASSOC_STATUS 115
Christopher Ferris525ce912017-07-26 13:12:53 -070079#define SCTP_PR_STREAM_STATUS 116
80#define SCTP_RECONFIG_SUPPORTED 117
81#define SCTP_ENABLE_STREAM_RESET 118
82#define SCTP_RESET_STREAMS 119
83#define SCTP_RESET_ASSOC 120
84#define SCTP_ADD_STREAMS 121
Christopher Ferris1308ad32017-11-14 17:32:13 -080085#define SCTP_SOCKOPT_PEELOFF_FLAGS 122
Christopher Ferris934ec942018-01-31 15:29:16 -080086#define SCTP_STREAM_SCHEDULER 123
87#define SCTP_STREAM_SCHEDULER_VALUE 124
Christopher Ferris76a1d452018-06-27 14:12:29 -070088#define SCTP_INTERLEAVING_SUPPORTED 125
89#define SCTP_SENDMSG_CONNECT 126
Christopher Ferrisd842e432019-03-07 10:21:59 -080090#define SCTP_EVENT 127
Christopher Ferris9584fa42019-12-09 15:36:13 -080091#define SCTP_ASCONF_SUPPORTED 128
92#define SCTP_AUTH_SUPPORTED 129
93#define SCTP_ECN_SUPPORTED 130
Christopher Ferrisd32ca142020-02-04 16:16:51 -080094#define SCTP_EXPOSE_POTENTIALLY_FAILED_STATE 131
95#define SCTP_EXPOSE_PF_STATE SCTP_EXPOSE_POTENTIALLY_FAILED_STATE
Christopher Ferris05667cd2021-02-16 16:01:34 -080096#define SCTP_REMOTE_UDP_ENCAPS_PORT 132
Christopher Ferris49f525c2016-12-12 14:55:36 -080097#define SCTP_PR_SCTP_NONE 0x0000
98#define SCTP_PR_SCTP_TTL 0x0010
Christopher Ferris49f525c2016-12-12 14:55:36 -080099#define SCTP_PR_SCTP_RTX 0x0020
100#define SCTP_PR_SCTP_PRIO 0x0030
101#define SCTP_PR_SCTP_MAX SCTP_PR_SCTP_PRIO
102#define SCTP_PR_SCTP_MASK 0x0030
Christopher Ferris49f525c2016-12-12 14:55:36 -0800103#define __SCTP_PR_INDEX(x) ((x >> 4) - 1)
104#define SCTP_PR_INDEX(x) __SCTP_PR_INDEX(SCTP_PR_SCTP_ ##x)
105#define SCTP_PR_POLICY(x) ((x) & SCTP_PR_SCTP_MASK)
106#define SCTP_PR_SET_POLICY(flags,x) do { flags &= ~SCTP_PR_SCTP_MASK; flags |= x; } while(0)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800107#define SCTP_PR_TTL_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_TTL)
108#define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX)
109#define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO)
Christopher Ferris525ce912017-07-26 13:12:53 -0700110#define SCTP_ENABLE_RESET_STREAM_REQ 0x01
111#define SCTP_ENABLE_RESET_ASSOC_REQ 0x02
112#define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x04
113#define SCTP_ENABLE_STRRESET_MASK 0x07
114#define SCTP_STREAM_RESET_INCOMING 0x01
115#define SCTP_STREAM_RESET_OUTGOING 0x02
Christopher Ferris82d75042015-01-26 10:57:07 -0800116enum sctp_msg_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800117 MSG_NOTIFICATION = 0x8000,
Christopher Ferris82d75042015-01-26 10:57:07 -0800118#define MSG_NOTIFICATION MSG_NOTIFICATION
119};
Ben Cheng655a7c02013-10-16 16:09:24 -0700120struct sctp_initmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800121 __u16 sinit_num_ostreams;
122 __u16 sinit_max_instreams;
123 __u16 sinit_max_attempts;
124 __u16 sinit_max_init_timeo;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
126struct sctp_sndrcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800127 __u16 sinfo_stream;
128 __u16 sinfo_ssn;
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u16 sinfo_flags;
130 __u32 sinfo_ppid;
131 __u32 sinfo_context;
132 __u32 sinfo_timetolive;
Tao Baod7db5942015-01-28 10:07:51 -0800133 __u32 sinfo_tsn;
134 __u32 sinfo_cumtsn;
135 sctp_assoc_t sinfo_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800136};
Christopher Ferris82d75042015-01-26 10:57:07 -0800137struct sctp_sndinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800138 __u16 snd_sid;
139 __u16 snd_flags;
140 __u32 snd_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800141 __u32 snd_context;
142 sctp_assoc_t snd_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800143};
144struct sctp_rcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800145 __u16 rcv_sid;
146 __u16 rcv_ssn;
147 __u16 rcv_flags;
148 __u32 rcv_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 rcv_tsn;
150 __u32 rcv_cumtsn;
151 __u32 rcv_context;
152 sctp_assoc_t rcv_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153};
Christopher Ferris82d75042015-01-26 10:57:07 -0800154struct sctp_nxtinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800155 __u16 nxt_sid;
156 __u16 nxt_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800157 __u32 nxt_ppid;
158 __u32 nxt_length;
159 sctp_assoc_t nxt_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800160};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700161struct sctp_prinfo {
162 __u16 pr_policy;
163 __u32 pr_value;
164};
165struct sctp_authinfo {
166 __u16 auth_keynumber;
167};
Christopher Ferris82d75042015-01-26 10:57:07 -0800168enum sctp_sinfo_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800169 SCTP_UNORDERED = (1 << 0),
170 SCTP_ADDR_OVER = (1 << 1),
171 SCTP_ABORT = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800172 SCTP_SACK_IMMEDIATELY = (1 << 3),
Christopher Ferris76a1d452018-06-27 14:12:29 -0700173 SCTP_SENDALL = (1 << 6),
Christopher Ferris9ce28842018-10-25 12:11:39 -0700174 SCTP_PR_SCTP_ALL = (1 << 7),
Tao Baod7db5942015-01-28 10:07:51 -0800175 SCTP_NOTIFICATION = MSG_NOTIFICATION,
176 SCTP_EOF = MSG_FIN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700177};
Ben Cheng655a7c02013-10-16 16:09:24 -0700178typedef union {
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u8 raw;
180 struct sctp_initmsg init;
181 struct sctp_sndrcvinfo sndrcv;
Ben Cheng655a7c02013-10-16 16:09:24 -0700182} sctp_cmsg_data_t;
183typedef enum sctp_cmsg_type {
Tao Baod7db5942015-01-28 10:07:51 -0800184 SCTP_INIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define SCTP_INIT SCTP_INIT
Tao Baod7db5942015-01-28 10:07:51 -0800186 SCTP_SNDRCV,
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define SCTP_SNDRCV SCTP_SNDRCV
Tao Baod7db5942015-01-28 10:07:51 -0800188 SCTP_SNDINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800189#define SCTP_SNDINFO SCTP_SNDINFO
Tao Baod7db5942015-01-28 10:07:51 -0800190 SCTP_RCVINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800191#define SCTP_RCVINFO SCTP_RCVINFO
Tao Baod7db5942015-01-28 10:07:51 -0800192 SCTP_NXTINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800193#define SCTP_NXTINFO SCTP_NXTINFO
Christopher Ferris76a1d452018-06-27 14:12:29 -0700194 SCTP_PRINFO,
195#define SCTP_PRINFO SCTP_PRINFO
196 SCTP_AUTHINFO,
197#define SCTP_AUTHINFO SCTP_AUTHINFO
198 SCTP_DSTADDRV4,
199#define SCTP_DSTADDRV4 SCTP_DSTADDRV4
200 SCTP_DSTADDRV6,
201#define SCTP_DSTADDRV6 SCTP_DSTADDRV6
Ben Cheng655a7c02013-10-16 16:09:24 -0700202} sctp_cmsg_t;
203struct sctp_assoc_change {
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u16 sac_type;
205 __u16 sac_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800206 __u32 sac_length;
207 __u16 sac_state;
208 __u16 sac_error;
209 __u16 sac_outbound_streams;
Tao Baod7db5942015-01-28 10:07:51 -0800210 __u16 sac_inbound_streams;
211 sctp_assoc_t sac_assoc_id;
212 __u8 sac_info[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700213};
214enum sctp_sac_state {
Tao Baod7db5942015-01-28 10:07:51 -0800215 SCTP_COMM_UP,
216 SCTP_COMM_LOST,
217 SCTP_RESTART,
Tao Baod7db5942015-01-28 10:07:51 -0800218 SCTP_SHUTDOWN_COMP,
219 SCTP_CANT_STR_ASSOC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700220};
221struct sctp_paddr_change {
Tao Baod7db5942015-01-28 10:07:51 -0800222 __u16 spc_type;
223 __u16 spc_flags;
224 __u32 spc_length;
225 struct sockaddr_storage spc_aaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800226 int spc_state;
227 int spc_error;
228 sctp_assoc_t spc_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700229} __attribute__((packed, aligned(4)));
230enum sctp_spc_state {
Tao Baod7db5942015-01-28 10:07:51 -0800231 SCTP_ADDR_AVAILABLE,
232 SCTP_ADDR_UNREACHABLE,
233 SCTP_ADDR_REMOVED,
Tao Baod7db5942015-01-28 10:07:51 -0800234 SCTP_ADDR_ADDED,
235 SCTP_ADDR_MADE_PRIM,
236 SCTP_ADDR_CONFIRMED,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800237 SCTP_ADDR_POTENTIALLY_FAILED,
238#define SCTP_ADDR_PF SCTP_ADDR_POTENTIALLY_FAILED
Ben Cheng655a7c02013-10-16 16:09:24 -0700239};
240struct sctp_remote_error {
Tao Baod7db5942015-01-28 10:07:51 -0800241 __u16 sre_type;
242 __u16 sre_flags;
243 __u32 sre_length;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800244 __be16 sre_error;
Tao Baod7db5942015-01-28 10:07:51 -0800245 sctp_assoc_t sre_assoc_id;
246 __u8 sre_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700247};
248struct sctp_send_failed {
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u16 ssf_type;
250 __u16 ssf_flags;
251 __u32 ssf_length;
Tao Baod7db5942015-01-28 10:07:51 -0800252 __u32 ssf_error;
253 struct sctp_sndrcvinfo ssf_info;
254 sctp_assoc_t ssf_assoc_id;
255 __u8 ssf_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700256};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800257struct sctp_send_failed_event {
258 __u16 ssf_type;
259 __u16 ssf_flags;
260 __u32 ssf_length;
261 __u32 ssf_error;
262 struct sctp_sndinfo ssfe_info;
263 sctp_assoc_t ssf_assoc_id;
264 __u8 ssf_data[0];
265};
Ben Cheng655a7c02013-10-16 16:09:24 -0700266enum sctp_ssf_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800267 SCTP_DATA_UNSENT,
268 SCTP_DATA_SENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700269};
270struct sctp_shutdown_event {
Tao Baod7db5942015-01-28 10:07:51 -0800271 __u16 sse_type;
272 __u16 sse_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800273 __u32 sse_length;
274 sctp_assoc_t sse_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700275};
276struct sctp_adaptation_event {
Tao Baod7db5942015-01-28 10:07:51 -0800277 __u16 sai_type;
278 __u16 sai_flags;
279 __u32 sai_length;
280 __u32 sai_adaptation_ind;
Tao Baod7db5942015-01-28 10:07:51 -0800281 sctp_assoc_t sai_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700282};
Ben Cheng655a7c02013-10-16 16:09:24 -0700283struct sctp_pdapi_event {
Tao Baod7db5942015-01-28 10:07:51 -0800284 __u16 pdapi_type;
Tao Baod7db5942015-01-28 10:07:51 -0800285 __u16 pdapi_flags;
286 __u32 pdapi_length;
287 __u32 pdapi_indication;
288 sctp_assoc_t pdapi_assoc_id;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700289 __u32 pdapi_stream;
290 __u32 pdapi_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700291};
Tao Baod7db5942015-01-28 10:07:51 -0800292enum {
293 SCTP_PARTIAL_DELIVERY_ABORTED = 0,
294};
Ben Cheng655a7c02013-10-16 16:09:24 -0700295struct sctp_authkey_event {
Tao Baod7db5942015-01-28 10:07:51 -0800296 __u16 auth_type;
297 __u16 auth_flags;
298 __u32 auth_length;
Tao Baod7db5942015-01-28 10:07:51 -0800299 __u16 auth_keynumber;
300 __u16 auth_altkeynumber;
301 __u32 auth_indication;
302 sctp_assoc_t auth_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700303};
Tao Baod7db5942015-01-28 10:07:51 -0800304enum {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700305 SCTP_AUTH_NEW_KEY,
306#define SCTP_AUTH_NEWKEY SCTP_AUTH_NEW_KEY
307 SCTP_AUTH_FREE_KEY,
308 SCTP_AUTH_NO_AUTH,
Tao Baod7db5942015-01-28 10:07:51 -0800309};
Ben Cheng655a7c02013-10-16 16:09:24 -0700310struct sctp_sender_dry_event {
Tao Baod7db5942015-01-28 10:07:51 -0800311 __u16 sender_dry_type;
312 __u16 sender_dry_flags;
313 __u32 sender_dry_length;
Tao Baod7db5942015-01-28 10:07:51 -0800314 sctp_assoc_t sender_dry_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700315};
Christopher Ferris525ce912017-07-26 13:12:53 -0700316#define SCTP_STREAM_RESET_INCOMING_SSN 0x0001
317#define SCTP_STREAM_RESET_OUTGOING_SSN 0x0002
318#define SCTP_STREAM_RESET_DENIED 0x0004
319#define SCTP_STREAM_RESET_FAILED 0x0008
320struct sctp_stream_reset_event {
321 __u16 strreset_type;
322 __u16 strreset_flags;
323 __u32 strreset_length;
324 sctp_assoc_t strreset_assoc_id;
325 __u16 strreset_stream_list[];
326};
327#define SCTP_ASSOC_RESET_DENIED 0x0004
328#define SCTP_ASSOC_RESET_FAILED 0x0008
329struct sctp_assoc_reset_event {
330 __u16 assocreset_type;
331 __u16 assocreset_flags;
332 __u32 assocreset_length;
333 sctp_assoc_t assocreset_assoc_id;
334 __u32 assocreset_local_tsn;
335 __u32 assocreset_remote_tsn;
336};
337#define SCTP_ASSOC_CHANGE_DENIED 0x0004
338#define SCTP_ASSOC_CHANGE_FAILED 0x0008
Christopher Ferris86a48372019-01-10 14:14:59 -0800339#define SCTP_STREAM_CHANGE_DENIED SCTP_ASSOC_CHANGE_DENIED
340#define SCTP_STREAM_CHANGE_FAILED SCTP_ASSOC_CHANGE_FAILED
Christopher Ferris525ce912017-07-26 13:12:53 -0700341struct sctp_stream_change_event {
342 __u16 strchange_type;
343 __u16 strchange_flags;
344 __u32 strchange_length;
345 sctp_assoc_t strchange_assoc_id;
346 __u16 strchange_instrms;
347 __u16 strchange_outstrms;
348};
Ben Cheng655a7c02013-10-16 16:09:24 -0700349struct sctp_event_subscribe {
Tao Baod7db5942015-01-28 10:07:51 -0800350 __u8 sctp_data_io_event;
Tao Baod7db5942015-01-28 10:07:51 -0800351 __u8 sctp_association_event;
352 __u8 sctp_address_event;
353 __u8 sctp_send_failure_event;
354 __u8 sctp_peer_error_event;
Tao Baod7db5942015-01-28 10:07:51 -0800355 __u8 sctp_shutdown_event;
356 __u8 sctp_partial_delivery_event;
357 __u8 sctp_adaptation_layer_event;
358 __u8 sctp_authentication_event;
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u8 sctp_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700360 __u8 sctp_stream_reset_event;
361 __u8 sctp_assoc_reset_event;
362 __u8 sctp_stream_change_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800363 __u8 sctp_send_failure_event_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700364};
Ben Cheng655a7c02013-10-16 16:09:24 -0700365union sctp_notification {
Tao Baod7db5942015-01-28 10:07:51 -0800366 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800367 __u16 sn_type;
368 __u16 sn_flags;
369 __u32 sn_length;
370 } sn_header;
Tao Baod7db5942015-01-28 10:07:51 -0800371 struct sctp_assoc_change sn_assoc_change;
372 struct sctp_paddr_change sn_paddr_change;
373 struct sctp_remote_error sn_remote_error;
374 struct sctp_send_failed sn_send_failed;
Tao Baod7db5942015-01-28 10:07:51 -0800375 struct sctp_shutdown_event sn_shutdown_event;
376 struct sctp_adaptation_event sn_adaptation_event;
377 struct sctp_pdapi_event sn_pdapi_event;
378 struct sctp_authkey_event sn_authkey_event;
Tao Baod7db5942015-01-28 10:07:51 -0800379 struct sctp_sender_dry_event sn_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700380 struct sctp_stream_reset_event sn_strreset_event;
381 struct sctp_assoc_reset_event sn_assocreset_event;
382 struct sctp_stream_change_event sn_strchange_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800383 struct sctp_send_failed_event sn_send_failed_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
Ben Cheng655a7c02013-10-16 16:09:24 -0700385enum sctp_sn_type {
Tao Baod7db5942015-01-28 10:07:51 -0800386 SCTP_SN_TYPE_BASE = (1 << 15),
Christopher Ferrisd842e432019-03-07 10:21:59 -0800387 SCTP_DATA_IO_EVENT = SCTP_SN_TYPE_BASE,
388#define SCTP_DATA_IO_EVENT SCTP_DATA_IO_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800389 SCTP_ASSOC_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700390#define SCTP_ASSOC_CHANGE SCTP_ASSOC_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800391 SCTP_PEER_ADDR_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700392#define SCTP_PEER_ADDR_CHANGE SCTP_PEER_ADDR_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800393 SCTP_SEND_FAILED,
Ben Cheng655a7c02013-10-16 16:09:24 -0700394#define SCTP_SEND_FAILED SCTP_SEND_FAILED
Tao Baod7db5942015-01-28 10:07:51 -0800395 SCTP_REMOTE_ERROR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700396#define SCTP_REMOTE_ERROR SCTP_REMOTE_ERROR
Tao Baod7db5942015-01-28 10:07:51 -0800397 SCTP_SHUTDOWN_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700398#define SCTP_SHUTDOWN_EVENT SCTP_SHUTDOWN_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800399 SCTP_PARTIAL_DELIVERY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700400#define SCTP_PARTIAL_DELIVERY_EVENT SCTP_PARTIAL_DELIVERY_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800401 SCTP_ADAPTATION_INDICATION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700402#define SCTP_ADAPTATION_INDICATION SCTP_ADAPTATION_INDICATION
Tao Baod7db5942015-01-28 10:07:51 -0800403 SCTP_AUTHENTICATION_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700404#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800405 SCTP_SENDER_DRY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700406#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT
Christopher Ferris525ce912017-07-26 13:12:53 -0700407 SCTP_STREAM_RESET_EVENT,
408#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT
409 SCTP_ASSOC_RESET_EVENT,
410#define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT
411 SCTP_STREAM_CHANGE_EVENT,
412#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800413 SCTP_SEND_FAILED_EVENT,
414#define SCTP_SEND_FAILED_EVENT SCTP_SEND_FAILED_EVENT
415 SCTP_SN_TYPE_MAX = SCTP_SEND_FAILED_EVENT,
Christopher Ferrisd842e432019-03-07 10:21:59 -0800416#define SCTP_SN_TYPE_MAX SCTP_SN_TYPE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700417};
418typedef enum sctp_sn_error {
Tao Baod7db5942015-01-28 10:07:51 -0800419 SCTP_FAILED_THRESHOLD,
420 SCTP_RECEIVED_SACK,
421 SCTP_HEARTBEAT_SUCCESS,
422 SCTP_RESPONSE_TO_USER_REQ,
Tao Baod7db5942015-01-28 10:07:51 -0800423 SCTP_INTERNAL_ERROR,
424 SCTP_SHUTDOWN_GUARD_EXPIRES,
425 SCTP_PEER_FAULTY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700426} sctp_sn_error_t;
427struct sctp_rtoinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800428 sctp_assoc_t srto_assoc_id;
429 __u32 srto_initial;
430 __u32 srto_max;
Tao Baod7db5942015-01-28 10:07:51 -0800431 __u32 srto_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700432};
Ben Cheng655a7c02013-10-16 16:09:24 -0700433struct sctp_assocparams {
Tao Baod7db5942015-01-28 10:07:51 -0800434 sctp_assoc_t sasoc_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800435 __u16 sasoc_asocmaxrxt;
436 __u16 sasoc_number_peer_destinations;
437 __u32 sasoc_peer_rwnd;
438 __u32 sasoc_local_rwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800439 __u32 sasoc_cookie_life;
Ben Cheng655a7c02013-10-16 16:09:24 -0700440};
Ben Cheng655a7c02013-10-16 16:09:24 -0700441struct sctp_setpeerprim {
Tao Baod7db5942015-01-28 10:07:51 -0800442 sctp_assoc_t sspp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800443 struct sockaddr_storage sspp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700444} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700445struct sctp_prim {
Tao Baod7db5942015-01-28 10:07:51 -0800446 sctp_assoc_t ssp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800447 struct sockaddr_storage ssp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700448} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700449#define sctp_setprim sctp_prim
450struct sctp_setadaptation {
Tao Baod7db5942015-01-28 10:07:51 -0800451 __u32 ssb_adaptation_ind;
Ben Cheng655a7c02013-10-16 16:09:24 -0700452};
Ben Cheng655a7c02013-10-16 16:09:24 -0700453enum sctp_spp_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800454 SPP_HB_ENABLE = 1 << 0,
Tao Baod7db5942015-01-28 10:07:51 -0800455 SPP_HB_DISABLE = 1 << 1,
456 SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE,
457 SPP_HB_DEMAND = 1 << 2,
458 SPP_PMTUD_ENABLE = 1 << 3,
Tao Baod7db5942015-01-28 10:07:51 -0800459 SPP_PMTUD_DISABLE = 1 << 4,
460 SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE,
461 SPP_SACKDELAY_ENABLE = 1 << 5,
462 SPP_SACKDELAY_DISABLE = 1 << 6,
Tao Baod7db5942015-01-28 10:07:51 -0800463 SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE,
464 SPP_HB_TIME_IS_ZERO = 1 << 7,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700465 SPP_IPV6_FLOWLABEL = 1 << 8,
466 SPP_DSCP = 1 << 9,
Ben Cheng655a7c02013-10-16 16:09:24 -0700467};
468struct sctp_paddrparams {
Tao Baod7db5942015-01-28 10:07:51 -0800469 sctp_assoc_t spp_assoc_id;
470 struct sockaddr_storage spp_address;
471 __u32 spp_hbinterval;
472 __u16 spp_pathmaxrxt;
Tao Baod7db5942015-01-28 10:07:51 -0800473 __u32 spp_pathmtu;
474 __u32 spp_sackdelay;
475 __u32 spp_flags;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700476 __u32 spp_ipv6_flowlabel;
477 __u8 spp_dscp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700478} __attribute__((packed, aligned(4)));
479struct sctp_authchunk {
Tao Baod7db5942015-01-28 10:07:51 -0800480 __u8 sauth_chunk;
Ben Cheng655a7c02013-10-16 16:09:24 -0700481};
482enum {
Tao Baod7db5942015-01-28 10:07:51 -0800483 SCTP_AUTH_HMAC_ID_SHA1 = 1,
484 SCTP_AUTH_HMAC_ID_SHA256 = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -0700485};
486struct sctp_hmacalgo {
Tao Baod7db5942015-01-28 10:07:51 -0800487 __u32 shmac_num_idents;
488 __u16 shmac_idents[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700489};
490#define shmac_number_of_idents shmac_num_idents
491struct sctp_authkey {
Tao Baod7db5942015-01-28 10:07:51 -0800492 sctp_assoc_t sca_assoc_id;
493 __u16 sca_keynumber;
494 __u16 sca_keylength;
Tao Baod7db5942015-01-28 10:07:51 -0800495 __u8 sca_key[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700496};
Ben Cheng655a7c02013-10-16 16:09:24 -0700497struct sctp_authkeyid {
Tao Baod7db5942015-01-28 10:07:51 -0800498 sctp_assoc_t scact_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800499 __u16 scact_keynumber;
Ben Cheng655a7c02013-10-16 16:09:24 -0700500};
Ben Cheng655a7c02013-10-16 16:09:24 -0700501struct sctp_sack_info {
Tao Baod7db5942015-01-28 10:07:51 -0800502 sctp_assoc_t sack_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800503 uint32_t sack_delay;
504 uint32_t sack_freq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700505};
506struct sctp_assoc_value {
Tao Baod7db5942015-01-28 10:07:51 -0800507 sctp_assoc_t assoc_id;
508 uint32_t assoc_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700509};
Christopher Ferris934ec942018-01-31 15:29:16 -0800510struct sctp_stream_value {
511 sctp_assoc_t assoc_id;
512 uint16_t stream_id;
513 uint16_t stream_value;
514};
Ben Cheng655a7c02013-10-16 16:09:24 -0700515struct sctp_paddrinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800516 sctp_assoc_t spinfo_assoc_id;
517 struct sockaddr_storage spinfo_address;
518 __s32 spinfo_state;
519 __u32 spinfo_cwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800520 __u32 spinfo_srtt;
521 __u32 spinfo_rto;
522 __u32 spinfo_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700523} __attribute__((packed, aligned(4)));
524enum sctp_spinfo_state {
Tao Baod7db5942015-01-28 10:07:51 -0800525 SCTP_INACTIVE,
526 SCTP_PF,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800527#define SCTP_POTENTIALLY_FAILED SCTP_PF
Tao Baod7db5942015-01-28 10:07:51 -0800528 SCTP_ACTIVE,
Tao Baod7db5942015-01-28 10:07:51 -0800529 SCTP_UNCONFIRMED,
530 SCTP_UNKNOWN = 0xffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700531};
532struct sctp_status {
Tao Baod7db5942015-01-28 10:07:51 -0800533 sctp_assoc_t sstat_assoc_id;
534 __s32 sstat_state;
535 __u32 sstat_rwnd;
536 __u16 sstat_unackdata;
Tao Baod7db5942015-01-28 10:07:51 -0800537 __u16 sstat_penddata;
538 __u16 sstat_instrms;
539 __u16 sstat_outstrms;
540 __u32 sstat_fragmentation_point;
Tao Baod7db5942015-01-28 10:07:51 -0800541 struct sctp_paddrinfo sstat_primary;
Ben Cheng655a7c02013-10-16 16:09:24 -0700542};
Ben Cheng655a7c02013-10-16 16:09:24 -0700543struct sctp_authchunks {
Tao Baod7db5942015-01-28 10:07:51 -0800544 sctp_assoc_t gauth_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800545 __u32 gauth_number_of_chunks;
546 uint8_t gauth_chunks[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700547};
548#define guth_number_of_chunks gauth_number_of_chunks
549enum sctp_sstat_state {
Tao Baod7db5942015-01-28 10:07:51 -0800550 SCTP_EMPTY = 0,
551 SCTP_CLOSED = 1,
552 SCTP_COOKIE_WAIT = 2,
Tao Baod7db5942015-01-28 10:07:51 -0800553 SCTP_COOKIE_ECHOED = 3,
554 SCTP_ESTABLISHED = 4,
555 SCTP_SHUTDOWN_PENDING = 5,
556 SCTP_SHUTDOWN_SENT = 6,
Tao Baod7db5942015-01-28 10:07:51 -0800557 SCTP_SHUTDOWN_RECEIVED = 7,
558 SCTP_SHUTDOWN_ACK_SENT = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700559};
560struct sctp_assoc_ids {
Tao Baod7db5942015-01-28 10:07:51 -0800561 __u32 gaids_number_of_ids;
562 sctp_assoc_t gaids_assoc_id[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700563};
564struct sctp_getaddrs_old {
Tao Baod7db5942015-01-28 10:07:51 -0800565 sctp_assoc_t assoc_id;
566 int addr_num;
567 struct sockaddr * addrs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700568};
569struct sctp_getaddrs {
Tao Baod7db5942015-01-28 10:07:51 -0800570 sctp_assoc_t assoc_id;
571 __u32 addr_num;
572 __u8 addrs[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700573};
574struct sctp_assoc_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800575 sctp_assoc_t sas_assoc_id;
576 struct sockaddr_storage sas_obs_rto_ipaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800577 __u64 sas_maxrto;
578 __u64 sas_isacks;
579 __u64 sas_osacks;
580 __u64 sas_opackets;
Tao Baod7db5942015-01-28 10:07:51 -0800581 __u64 sas_ipackets;
582 __u64 sas_rtxchunks;
583 __u64 sas_outofseqtsns;
584 __u64 sas_idupchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800585 __u64 sas_gapcnt;
586 __u64 sas_ouodchunks;
587 __u64 sas_iuodchunks;
588 __u64 sas_oodchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800589 __u64 sas_iodchunks;
590 __u64 sas_octrlchunks;
591 __u64 sas_ictrlchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700592};
Ben Cheng655a7c02013-10-16 16:09:24 -0700593#define SCTP_BINDX_ADD_ADDR 0x01
594#define SCTP_BINDX_REM_ADDR 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700595typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800596 sctp_assoc_t associd;
Tao Baod7db5942015-01-28 10:07:51 -0800597 int sd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700598} sctp_peeloff_arg_t;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800599typedef struct {
600 sctp_peeloff_arg_t p_arg;
601 unsigned flags;
602} sctp_peeloff_flags_arg_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700603struct sctp_paddrthlds {
Tao Baod7db5942015-01-28 10:07:51 -0800604 sctp_assoc_t spt_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800605 struct sockaddr_storage spt_address;
606 __u16 spt_pathmaxrxt;
607 __u16 spt_pathpfthld;
Ben Cheng655a7c02013-10-16 16:09:24 -0700608};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800609struct sctp_paddrthlds_v2 {
610 sctp_assoc_t spt_assoc_id;
611 struct sockaddr_storage spt_address;
612 __u16 spt_pathmaxrxt;
613 __u16 spt_pathpfthld;
614 __u16 spt_pathcpthld;
615};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800616struct sctp_prstatus {
617 sctp_assoc_t sprstat_assoc_id;
618 __u16 sprstat_sid;
619 __u16 sprstat_policy;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800620 __u64 sprstat_abandoned_unsent;
621 __u64 sprstat_abandoned_sent;
622};
623struct sctp_default_prinfo {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800624 sctp_assoc_t pr_assoc_id;
625 __u32 pr_value;
626 __u16 pr_policy;
627};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800628struct sctp_info {
629 __u32 sctpi_tag;
630 __u32 sctpi_state;
631 __u32 sctpi_rwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800632 __u16 sctpi_unackdata;
633 __u16 sctpi_penddata;
634 __u16 sctpi_instrms;
635 __u16 sctpi_outstrms;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800636 __u32 sctpi_fragmentation_point;
637 __u32 sctpi_inqueue;
638 __u32 sctpi_outqueue;
639 __u32 sctpi_overall_error;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800640 __u32 sctpi_max_burst;
641 __u32 sctpi_maxseg;
642 __u32 sctpi_peer_rwnd;
643 __u32 sctpi_peer_tag;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800644 __u8 sctpi_peer_capable;
645 __u8 sctpi_peer_sack;
646 __u16 __reserved1;
647 __u64 sctpi_isacks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800648 __u64 sctpi_osacks;
649 __u64 sctpi_opackets;
650 __u64 sctpi_ipackets;
651 __u64 sctpi_rtxchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800652 __u64 sctpi_outofseqtsns;
653 __u64 sctpi_idupchunks;
654 __u64 sctpi_gapcnt;
655 __u64 sctpi_ouodchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800656 __u64 sctpi_iuodchunks;
657 __u64 sctpi_oodchunks;
658 __u64 sctpi_iodchunks;
659 __u64 sctpi_octrlchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800660 __u64 sctpi_ictrlchunks;
661 struct sockaddr_storage sctpi_p_address;
662 __s32 sctpi_p_state;
663 __u32 sctpi_p_cwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800664 __u32 sctpi_p_srtt;
665 __u32 sctpi_p_rto;
666 __u32 sctpi_p_hbinterval;
667 __u32 sctpi_p_pathmaxrxt;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800668 __u32 sctpi_p_sackdelay;
669 __u32 sctpi_p_sackfreq;
670 __u32 sctpi_p_ssthresh;
671 __u32 sctpi_p_partial_bytes_acked;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800672 __u32 sctpi_p_flight_size;
673 __u16 sctpi_p_error;
674 __u16 __reserved2;
675 __u32 sctpi_s_autoclose;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800676 __u32 sctpi_s_adaptation_ind;
677 __u32 sctpi_s_pd_point;
678 __u8 sctpi_s_nodelay;
679 __u8 sctpi_s_disable_fragments;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800680 __u8 sctpi_s_v4mapped;
681 __u8 sctpi_s_frag_interleave;
682 __u32 sctpi_s_type;
683 __u32 __reserved3;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800684};
Christopher Ferris525ce912017-07-26 13:12:53 -0700685struct sctp_reset_streams {
686 sctp_assoc_t srs_assoc_id;
687 uint16_t srs_flags;
688 uint16_t srs_number_streams;
689 uint16_t srs_stream_list[];
690};
691struct sctp_add_streams {
692 sctp_assoc_t sas_assoc_id;
693 uint16_t sas_instrms;
694 uint16_t sas_outstrms;
695};
Christopher Ferrisd842e432019-03-07 10:21:59 -0800696struct sctp_event {
697 sctp_assoc_t se_assoc_id;
698 uint16_t se_type;
699 uint8_t se_on;
700};
Christopher Ferris05667cd2021-02-16 16:01:34 -0800701struct sctp_udpencaps {
702 sctp_assoc_t sue_assoc_id;
703 struct sockaddr_storage sue_address;
704 uint16_t sue_port;
705};
Christopher Ferris934ec942018-01-31 15:29:16 -0800706enum sctp_sched_type {
707 SCTP_SS_FCFS,
Christopher Ferris86a48372019-01-10 14:14:59 -0800708 SCTP_SS_DEFAULT = SCTP_SS_FCFS,
Christopher Ferris934ec942018-01-31 15:29:16 -0800709 SCTP_SS_PRIO,
710 SCTP_SS_RR,
711 SCTP_SS_MAX = SCTP_SS_RR
712};
Ben Cheng655a7c02013-10-16 16:09:24 -0700713#endif