blob: 765d6c9e4620a779736f3ef902923d41f03e02a2 [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 Ferris3a39c0b2021-09-02 00:03:38 +000097#define SCTP_PLPMTUD_PROBE_INTERVAL 133
Christopher Ferris49f525c2016-12-12 14:55:36 -080098#define SCTP_PR_SCTP_NONE 0x0000
99#define SCTP_PR_SCTP_TTL 0x0010
Christopher Ferris49f525c2016-12-12 14:55:36 -0800100#define SCTP_PR_SCTP_RTX 0x0020
101#define SCTP_PR_SCTP_PRIO 0x0030
102#define SCTP_PR_SCTP_MAX SCTP_PR_SCTP_PRIO
103#define SCTP_PR_SCTP_MASK 0x0030
Christopher Ferris49f525c2016-12-12 14:55:36 -0800104#define __SCTP_PR_INDEX(x) ((x >> 4) - 1)
105#define SCTP_PR_INDEX(x) __SCTP_PR_INDEX(SCTP_PR_SCTP_ ##x)
106#define SCTP_PR_POLICY(x) ((x) & SCTP_PR_SCTP_MASK)
107#define SCTP_PR_SET_POLICY(flags,x) do { flags &= ~SCTP_PR_SCTP_MASK; flags |= x; } while(0)
Christopher Ferris49f525c2016-12-12 14:55:36 -0800108#define SCTP_PR_TTL_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_TTL)
109#define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX)
110#define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO)
Christopher Ferris525ce912017-07-26 13:12:53 -0700111#define SCTP_ENABLE_RESET_STREAM_REQ 0x01
112#define SCTP_ENABLE_RESET_ASSOC_REQ 0x02
113#define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x04
114#define SCTP_ENABLE_STRRESET_MASK 0x07
115#define SCTP_STREAM_RESET_INCOMING 0x01
116#define SCTP_STREAM_RESET_OUTGOING 0x02
Christopher Ferris82d75042015-01-26 10:57:07 -0800117enum sctp_msg_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800118 MSG_NOTIFICATION = 0x8000,
Christopher Ferris82d75042015-01-26 10:57:07 -0800119#define MSG_NOTIFICATION MSG_NOTIFICATION
120};
Ben Cheng655a7c02013-10-16 16:09:24 -0700121struct sctp_initmsg {
Tao Baod7db5942015-01-28 10:07:51 -0800122 __u16 sinit_num_ostreams;
123 __u16 sinit_max_instreams;
124 __u16 sinit_max_attempts;
125 __u16 sinit_max_init_timeo;
Ben Cheng655a7c02013-10-16 16:09:24 -0700126};
127struct sctp_sndrcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800128 __u16 sinfo_stream;
129 __u16 sinfo_ssn;
Tao Baod7db5942015-01-28 10:07:51 -0800130 __u16 sinfo_flags;
131 __u32 sinfo_ppid;
132 __u32 sinfo_context;
133 __u32 sinfo_timetolive;
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u32 sinfo_tsn;
135 __u32 sinfo_cumtsn;
136 sctp_assoc_t sinfo_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800137};
Christopher Ferris82d75042015-01-26 10:57:07 -0800138struct sctp_sndinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u16 snd_sid;
140 __u16 snd_flags;
141 __u32 snd_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800142 __u32 snd_context;
143 sctp_assoc_t snd_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800144};
145struct sctp_rcvinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800146 __u16 rcv_sid;
147 __u16 rcv_ssn;
148 __u16 rcv_flags;
149 __u32 rcv_ppid;
Tao Baod7db5942015-01-28 10:07:51 -0800150 __u32 rcv_tsn;
151 __u32 rcv_cumtsn;
152 __u32 rcv_context;
153 sctp_assoc_t rcv_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700154};
Christopher Ferris82d75042015-01-26 10:57:07 -0800155struct sctp_nxtinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800156 __u16 nxt_sid;
157 __u16 nxt_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800158 __u32 nxt_ppid;
159 __u32 nxt_length;
160 sctp_assoc_t nxt_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800161};
Christopher Ferris76a1d452018-06-27 14:12:29 -0700162struct sctp_prinfo {
163 __u16 pr_policy;
164 __u32 pr_value;
165};
166struct sctp_authinfo {
167 __u16 auth_keynumber;
168};
Christopher Ferris82d75042015-01-26 10:57:07 -0800169enum sctp_sinfo_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800170 SCTP_UNORDERED = (1 << 0),
171 SCTP_ADDR_OVER = (1 << 1),
172 SCTP_ABORT = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800173 SCTP_SACK_IMMEDIATELY = (1 << 3),
Christopher Ferris76a1d452018-06-27 14:12:29 -0700174 SCTP_SENDALL = (1 << 6),
Christopher Ferris9ce28842018-10-25 12:11:39 -0700175 SCTP_PR_SCTP_ALL = (1 << 7),
Tao Baod7db5942015-01-28 10:07:51 -0800176 SCTP_NOTIFICATION = MSG_NOTIFICATION,
177 SCTP_EOF = MSG_FIN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700178};
Ben Cheng655a7c02013-10-16 16:09:24 -0700179typedef union {
Tao Baod7db5942015-01-28 10:07:51 -0800180 __u8 raw;
181 struct sctp_initmsg init;
182 struct sctp_sndrcvinfo sndrcv;
Ben Cheng655a7c02013-10-16 16:09:24 -0700183} sctp_cmsg_data_t;
184typedef enum sctp_cmsg_type {
Tao Baod7db5942015-01-28 10:07:51 -0800185 SCTP_INIT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700186#define SCTP_INIT SCTP_INIT
Tao Baod7db5942015-01-28 10:07:51 -0800187 SCTP_SNDRCV,
Ben Cheng655a7c02013-10-16 16:09:24 -0700188#define SCTP_SNDRCV SCTP_SNDRCV
Tao Baod7db5942015-01-28 10:07:51 -0800189 SCTP_SNDINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800190#define SCTP_SNDINFO SCTP_SNDINFO
Tao Baod7db5942015-01-28 10:07:51 -0800191 SCTP_RCVINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800192#define SCTP_RCVINFO SCTP_RCVINFO
Tao Baod7db5942015-01-28 10:07:51 -0800193 SCTP_NXTINFO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800194#define SCTP_NXTINFO SCTP_NXTINFO
Christopher Ferris76a1d452018-06-27 14:12:29 -0700195 SCTP_PRINFO,
196#define SCTP_PRINFO SCTP_PRINFO
197 SCTP_AUTHINFO,
198#define SCTP_AUTHINFO SCTP_AUTHINFO
199 SCTP_DSTADDRV4,
200#define SCTP_DSTADDRV4 SCTP_DSTADDRV4
201 SCTP_DSTADDRV6,
202#define SCTP_DSTADDRV6 SCTP_DSTADDRV6
Ben Cheng655a7c02013-10-16 16:09:24 -0700203} sctp_cmsg_t;
204struct sctp_assoc_change {
Tao Baod7db5942015-01-28 10:07:51 -0800205 __u16 sac_type;
206 __u16 sac_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800207 __u32 sac_length;
208 __u16 sac_state;
209 __u16 sac_error;
210 __u16 sac_outbound_streams;
Tao Baod7db5942015-01-28 10:07:51 -0800211 __u16 sac_inbound_streams;
212 sctp_assoc_t sac_assoc_id;
213 __u8 sac_info[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700214};
215enum sctp_sac_state {
Tao Baod7db5942015-01-28 10:07:51 -0800216 SCTP_COMM_UP,
217 SCTP_COMM_LOST,
218 SCTP_RESTART,
Tao Baod7db5942015-01-28 10:07:51 -0800219 SCTP_SHUTDOWN_COMP,
220 SCTP_CANT_STR_ASSOC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700221};
222struct sctp_paddr_change {
Tao Baod7db5942015-01-28 10:07:51 -0800223 __u16 spc_type;
224 __u16 spc_flags;
225 __u32 spc_length;
226 struct sockaddr_storage spc_aaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800227 int spc_state;
228 int spc_error;
229 sctp_assoc_t spc_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700230} __attribute__((packed, aligned(4)));
231enum sctp_spc_state {
Tao Baod7db5942015-01-28 10:07:51 -0800232 SCTP_ADDR_AVAILABLE,
233 SCTP_ADDR_UNREACHABLE,
234 SCTP_ADDR_REMOVED,
Tao Baod7db5942015-01-28 10:07:51 -0800235 SCTP_ADDR_ADDED,
236 SCTP_ADDR_MADE_PRIM,
237 SCTP_ADDR_CONFIRMED,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800238 SCTP_ADDR_POTENTIALLY_FAILED,
239#define SCTP_ADDR_PF SCTP_ADDR_POTENTIALLY_FAILED
Ben Cheng655a7c02013-10-16 16:09:24 -0700240};
241struct sctp_remote_error {
Tao Baod7db5942015-01-28 10:07:51 -0800242 __u16 sre_type;
243 __u16 sre_flags;
244 __u32 sre_length;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800245 __be16 sre_error;
Tao Baod7db5942015-01-28 10:07:51 -0800246 sctp_assoc_t sre_assoc_id;
247 __u8 sre_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700248};
249struct sctp_send_failed {
Tao Baod7db5942015-01-28 10:07:51 -0800250 __u16 ssf_type;
251 __u16 ssf_flags;
252 __u32 ssf_length;
Tao Baod7db5942015-01-28 10:07:51 -0800253 __u32 ssf_error;
254 struct sctp_sndrcvinfo ssf_info;
255 sctp_assoc_t ssf_assoc_id;
256 __u8 ssf_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700257};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800258struct sctp_send_failed_event {
259 __u16 ssf_type;
260 __u16 ssf_flags;
261 __u32 ssf_length;
262 __u32 ssf_error;
263 struct sctp_sndinfo ssfe_info;
264 sctp_assoc_t ssf_assoc_id;
265 __u8 ssf_data[0];
266};
Ben Cheng655a7c02013-10-16 16:09:24 -0700267enum sctp_ssf_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800268 SCTP_DATA_UNSENT,
269 SCTP_DATA_SENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700270};
271struct sctp_shutdown_event {
Tao Baod7db5942015-01-28 10:07:51 -0800272 __u16 sse_type;
273 __u16 sse_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800274 __u32 sse_length;
275 sctp_assoc_t sse_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700276};
277struct sctp_adaptation_event {
Tao Baod7db5942015-01-28 10:07:51 -0800278 __u16 sai_type;
279 __u16 sai_flags;
280 __u32 sai_length;
281 __u32 sai_adaptation_ind;
Tao Baod7db5942015-01-28 10:07:51 -0800282 sctp_assoc_t sai_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283};
Ben Cheng655a7c02013-10-16 16:09:24 -0700284struct sctp_pdapi_event {
Tao Baod7db5942015-01-28 10:07:51 -0800285 __u16 pdapi_type;
Tao Baod7db5942015-01-28 10:07:51 -0800286 __u16 pdapi_flags;
287 __u32 pdapi_length;
288 __u32 pdapi_indication;
289 sctp_assoc_t pdapi_assoc_id;
Christopher Ferris76a1d452018-06-27 14:12:29 -0700290 __u32 pdapi_stream;
291 __u32 pdapi_seq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700292};
Tao Baod7db5942015-01-28 10:07:51 -0800293enum {
294 SCTP_PARTIAL_DELIVERY_ABORTED = 0,
295};
Ben Cheng655a7c02013-10-16 16:09:24 -0700296struct sctp_authkey_event {
Tao Baod7db5942015-01-28 10:07:51 -0800297 __u16 auth_type;
298 __u16 auth_flags;
299 __u32 auth_length;
Tao Baod7db5942015-01-28 10:07:51 -0800300 __u16 auth_keynumber;
301 __u16 auth_altkeynumber;
302 __u32 auth_indication;
303 sctp_assoc_t auth_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700304};
Tao Baod7db5942015-01-28 10:07:51 -0800305enum {
Christopher Ferris76a1d452018-06-27 14:12:29 -0700306 SCTP_AUTH_NEW_KEY,
307#define SCTP_AUTH_NEWKEY SCTP_AUTH_NEW_KEY
308 SCTP_AUTH_FREE_KEY,
309 SCTP_AUTH_NO_AUTH,
Tao Baod7db5942015-01-28 10:07:51 -0800310};
Ben Cheng655a7c02013-10-16 16:09:24 -0700311struct sctp_sender_dry_event {
Tao Baod7db5942015-01-28 10:07:51 -0800312 __u16 sender_dry_type;
313 __u16 sender_dry_flags;
314 __u32 sender_dry_length;
Tao Baod7db5942015-01-28 10:07:51 -0800315 sctp_assoc_t sender_dry_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700316};
Christopher Ferris525ce912017-07-26 13:12:53 -0700317#define SCTP_STREAM_RESET_INCOMING_SSN 0x0001
318#define SCTP_STREAM_RESET_OUTGOING_SSN 0x0002
319#define SCTP_STREAM_RESET_DENIED 0x0004
320#define SCTP_STREAM_RESET_FAILED 0x0008
321struct sctp_stream_reset_event {
322 __u16 strreset_type;
323 __u16 strreset_flags;
324 __u32 strreset_length;
325 sctp_assoc_t strreset_assoc_id;
326 __u16 strreset_stream_list[];
327};
328#define SCTP_ASSOC_RESET_DENIED 0x0004
329#define SCTP_ASSOC_RESET_FAILED 0x0008
330struct sctp_assoc_reset_event {
331 __u16 assocreset_type;
332 __u16 assocreset_flags;
333 __u32 assocreset_length;
334 sctp_assoc_t assocreset_assoc_id;
335 __u32 assocreset_local_tsn;
336 __u32 assocreset_remote_tsn;
337};
338#define SCTP_ASSOC_CHANGE_DENIED 0x0004
339#define SCTP_ASSOC_CHANGE_FAILED 0x0008
Christopher Ferris86a48372019-01-10 14:14:59 -0800340#define SCTP_STREAM_CHANGE_DENIED SCTP_ASSOC_CHANGE_DENIED
341#define SCTP_STREAM_CHANGE_FAILED SCTP_ASSOC_CHANGE_FAILED
Christopher Ferris525ce912017-07-26 13:12:53 -0700342struct sctp_stream_change_event {
343 __u16 strchange_type;
344 __u16 strchange_flags;
345 __u32 strchange_length;
346 sctp_assoc_t strchange_assoc_id;
347 __u16 strchange_instrms;
348 __u16 strchange_outstrms;
349};
Ben Cheng655a7c02013-10-16 16:09:24 -0700350struct sctp_event_subscribe {
Tao Baod7db5942015-01-28 10:07:51 -0800351 __u8 sctp_data_io_event;
Tao Baod7db5942015-01-28 10:07:51 -0800352 __u8 sctp_association_event;
353 __u8 sctp_address_event;
354 __u8 sctp_send_failure_event;
355 __u8 sctp_peer_error_event;
Tao Baod7db5942015-01-28 10:07:51 -0800356 __u8 sctp_shutdown_event;
357 __u8 sctp_partial_delivery_event;
358 __u8 sctp_adaptation_layer_event;
359 __u8 sctp_authentication_event;
Tao Baod7db5942015-01-28 10:07:51 -0800360 __u8 sctp_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700361 __u8 sctp_stream_reset_event;
362 __u8 sctp_assoc_reset_event;
363 __u8 sctp_stream_change_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800364 __u8 sctp_send_failure_event_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700365};
Ben Cheng655a7c02013-10-16 16:09:24 -0700366union sctp_notification {
Tao Baod7db5942015-01-28 10:07:51 -0800367 struct {
Tao Baod7db5942015-01-28 10:07:51 -0800368 __u16 sn_type;
369 __u16 sn_flags;
370 __u32 sn_length;
371 } sn_header;
Tao Baod7db5942015-01-28 10:07:51 -0800372 struct sctp_assoc_change sn_assoc_change;
373 struct sctp_paddr_change sn_paddr_change;
374 struct sctp_remote_error sn_remote_error;
375 struct sctp_send_failed sn_send_failed;
Tao Baod7db5942015-01-28 10:07:51 -0800376 struct sctp_shutdown_event sn_shutdown_event;
377 struct sctp_adaptation_event sn_adaptation_event;
378 struct sctp_pdapi_event sn_pdapi_event;
379 struct sctp_authkey_event sn_authkey_event;
Tao Baod7db5942015-01-28 10:07:51 -0800380 struct sctp_sender_dry_event sn_sender_dry_event;
Christopher Ferris525ce912017-07-26 13:12:53 -0700381 struct sctp_stream_reset_event sn_strreset_event;
382 struct sctp_assoc_reset_event sn_assocreset_event;
383 struct sctp_stream_change_event sn_strchange_event;
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800384 struct sctp_send_failed_event sn_send_failed_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700385};
Ben Cheng655a7c02013-10-16 16:09:24 -0700386enum sctp_sn_type {
Tao Baod7db5942015-01-28 10:07:51 -0800387 SCTP_SN_TYPE_BASE = (1 << 15),
Christopher Ferrisd842e432019-03-07 10:21:59 -0800388 SCTP_DATA_IO_EVENT = SCTP_SN_TYPE_BASE,
389#define SCTP_DATA_IO_EVENT SCTP_DATA_IO_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800390 SCTP_ASSOC_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700391#define SCTP_ASSOC_CHANGE SCTP_ASSOC_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800392 SCTP_PEER_ADDR_CHANGE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700393#define SCTP_PEER_ADDR_CHANGE SCTP_PEER_ADDR_CHANGE
Tao Baod7db5942015-01-28 10:07:51 -0800394 SCTP_SEND_FAILED,
Ben Cheng655a7c02013-10-16 16:09:24 -0700395#define SCTP_SEND_FAILED SCTP_SEND_FAILED
Tao Baod7db5942015-01-28 10:07:51 -0800396 SCTP_REMOTE_ERROR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700397#define SCTP_REMOTE_ERROR SCTP_REMOTE_ERROR
Tao Baod7db5942015-01-28 10:07:51 -0800398 SCTP_SHUTDOWN_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700399#define SCTP_SHUTDOWN_EVENT SCTP_SHUTDOWN_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800400 SCTP_PARTIAL_DELIVERY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700401#define SCTP_PARTIAL_DELIVERY_EVENT SCTP_PARTIAL_DELIVERY_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800402 SCTP_ADAPTATION_INDICATION,
Ben Cheng655a7c02013-10-16 16:09:24 -0700403#define SCTP_ADAPTATION_INDICATION SCTP_ADAPTATION_INDICATION
Tao Baod7db5942015-01-28 10:07:51 -0800404 SCTP_AUTHENTICATION_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700405#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
Tao Baod7db5942015-01-28 10:07:51 -0800406 SCTP_SENDER_DRY_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700407#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT
Christopher Ferris525ce912017-07-26 13:12:53 -0700408 SCTP_STREAM_RESET_EVENT,
409#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT
410 SCTP_ASSOC_RESET_EVENT,
411#define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT
412 SCTP_STREAM_CHANGE_EVENT,
413#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800414 SCTP_SEND_FAILED_EVENT,
415#define SCTP_SEND_FAILED_EVENT SCTP_SEND_FAILED_EVENT
416 SCTP_SN_TYPE_MAX = SCTP_SEND_FAILED_EVENT,
Christopher Ferrisd842e432019-03-07 10:21:59 -0800417#define SCTP_SN_TYPE_MAX SCTP_SN_TYPE_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -0700418};
419typedef enum sctp_sn_error {
Tao Baod7db5942015-01-28 10:07:51 -0800420 SCTP_FAILED_THRESHOLD,
421 SCTP_RECEIVED_SACK,
422 SCTP_HEARTBEAT_SUCCESS,
423 SCTP_RESPONSE_TO_USER_REQ,
Tao Baod7db5942015-01-28 10:07:51 -0800424 SCTP_INTERNAL_ERROR,
425 SCTP_SHUTDOWN_GUARD_EXPIRES,
426 SCTP_PEER_FAULTY,
Ben Cheng655a7c02013-10-16 16:09:24 -0700427} sctp_sn_error_t;
428struct sctp_rtoinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800429 sctp_assoc_t srto_assoc_id;
430 __u32 srto_initial;
431 __u32 srto_max;
Tao Baod7db5942015-01-28 10:07:51 -0800432 __u32 srto_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700433};
Ben Cheng655a7c02013-10-16 16:09:24 -0700434struct sctp_assocparams {
Tao Baod7db5942015-01-28 10:07:51 -0800435 sctp_assoc_t sasoc_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800436 __u16 sasoc_asocmaxrxt;
437 __u16 sasoc_number_peer_destinations;
438 __u32 sasoc_peer_rwnd;
439 __u32 sasoc_local_rwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800440 __u32 sasoc_cookie_life;
Ben Cheng655a7c02013-10-16 16:09:24 -0700441};
Ben Cheng655a7c02013-10-16 16:09:24 -0700442struct sctp_setpeerprim {
Tao Baod7db5942015-01-28 10:07:51 -0800443 sctp_assoc_t sspp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800444 struct sockaddr_storage sspp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700445} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700446struct sctp_prim {
Tao Baod7db5942015-01-28 10:07:51 -0800447 sctp_assoc_t ssp_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800448 struct sockaddr_storage ssp_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700449} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700450#define sctp_setprim sctp_prim
451struct sctp_setadaptation {
Tao Baod7db5942015-01-28 10:07:51 -0800452 __u32 ssb_adaptation_ind;
Ben Cheng655a7c02013-10-16 16:09:24 -0700453};
Ben Cheng655a7c02013-10-16 16:09:24 -0700454enum sctp_spp_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800455 SPP_HB_ENABLE = 1 << 0,
Tao Baod7db5942015-01-28 10:07:51 -0800456 SPP_HB_DISABLE = 1 << 1,
457 SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE,
458 SPP_HB_DEMAND = 1 << 2,
459 SPP_PMTUD_ENABLE = 1 << 3,
Tao Baod7db5942015-01-28 10:07:51 -0800460 SPP_PMTUD_DISABLE = 1 << 4,
461 SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE,
462 SPP_SACKDELAY_ENABLE = 1 << 5,
463 SPP_SACKDELAY_DISABLE = 1 << 6,
Tao Baod7db5942015-01-28 10:07:51 -0800464 SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE,
465 SPP_HB_TIME_IS_ZERO = 1 << 7,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700466 SPP_IPV6_FLOWLABEL = 1 << 8,
467 SPP_DSCP = 1 << 9,
Ben Cheng655a7c02013-10-16 16:09:24 -0700468};
469struct sctp_paddrparams {
Tao Baod7db5942015-01-28 10:07:51 -0800470 sctp_assoc_t spp_assoc_id;
471 struct sockaddr_storage spp_address;
472 __u32 spp_hbinterval;
473 __u16 spp_pathmaxrxt;
Tao Baod7db5942015-01-28 10:07:51 -0800474 __u32 spp_pathmtu;
475 __u32 spp_sackdelay;
476 __u32 spp_flags;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700477 __u32 spp_ipv6_flowlabel;
478 __u8 spp_dscp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700479} __attribute__((packed, aligned(4)));
480struct sctp_authchunk {
Tao Baod7db5942015-01-28 10:07:51 -0800481 __u8 sauth_chunk;
Ben Cheng655a7c02013-10-16 16:09:24 -0700482};
483enum {
Tao Baod7db5942015-01-28 10:07:51 -0800484 SCTP_AUTH_HMAC_ID_SHA1 = 1,
485 SCTP_AUTH_HMAC_ID_SHA256 = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -0700486};
487struct sctp_hmacalgo {
Tao Baod7db5942015-01-28 10:07:51 -0800488 __u32 shmac_num_idents;
489 __u16 shmac_idents[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700490};
491#define shmac_number_of_idents shmac_num_idents
492struct sctp_authkey {
Tao Baod7db5942015-01-28 10:07:51 -0800493 sctp_assoc_t sca_assoc_id;
494 __u16 sca_keynumber;
495 __u16 sca_keylength;
Tao Baod7db5942015-01-28 10:07:51 -0800496 __u8 sca_key[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700497};
Ben Cheng655a7c02013-10-16 16:09:24 -0700498struct sctp_authkeyid {
Tao Baod7db5942015-01-28 10:07:51 -0800499 sctp_assoc_t scact_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800500 __u16 scact_keynumber;
Ben Cheng655a7c02013-10-16 16:09:24 -0700501};
Ben Cheng655a7c02013-10-16 16:09:24 -0700502struct sctp_sack_info {
Tao Baod7db5942015-01-28 10:07:51 -0800503 sctp_assoc_t sack_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800504 uint32_t sack_delay;
505 uint32_t sack_freq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700506};
507struct sctp_assoc_value {
Tao Baod7db5942015-01-28 10:07:51 -0800508 sctp_assoc_t assoc_id;
509 uint32_t assoc_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700510};
Christopher Ferris934ec942018-01-31 15:29:16 -0800511struct sctp_stream_value {
512 sctp_assoc_t assoc_id;
513 uint16_t stream_id;
514 uint16_t stream_value;
515};
Ben Cheng655a7c02013-10-16 16:09:24 -0700516struct sctp_paddrinfo {
Tao Baod7db5942015-01-28 10:07:51 -0800517 sctp_assoc_t spinfo_assoc_id;
518 struct sockaddr_storage spinfo_address;
519 __s32 spinfo_state;
520 __u32 spinfo_cwnd;
Tao Baod7db5942015-01-28 10:07:51 -0800521 __u32 spinfo_srtt;
522 __u32 spinfo_rto;
523 __u32 spinfo_mtu;
Ben Cheng655a7c02013-10-16 16:09:24 -0700524} __attribute__((packed, aligned(4)));
525enum sctp_spinfo_state {
Tao Baod7db5942015-01-28 10:07:51 -0800526 SCTP_INACTIVE,
527 SCTP_PF,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800528#define SCTP_POTENTIALLY_FAILED SCTP_PF
Tao Baod7db5942015-01-28 10:07:51 -0800529 SCTP_ACTIVE,
Tao Baod7db5942015-01-28 10:07:51 -0800530 SCTP_UNCONFIRMED,
531 SCTP_UNKNOWN = 0xffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700532};
533struct sctp_status {
Tao Baod7db5942015-01-28 10:07:51 -0800534 sctp_assoc_t sstat_assoc_id;
535 __s32 sstat_state;
536 __u32 sstat_rwnd;
537 __u16 sstat_unackdata;
Tao Baod7db5942015-01-28 10:07:51 -0800538 __u16 sstat_penddata;
539 __u16 sstat_instrms;
540 __u16 sstat_outstrms;
541 __u32 sstat_fragmentation_point;
Tao Baod7db5942015-01-28 10:07:51 -0800542 struct sctp_paddrinfo sstat_primary;
Ben Cheng655a7c02013-10-16 16:09:24 -0700543};
Ben Cheng655a7c02013-10-16 16:09:24 -0700544struct sctp_authchunks {
Tao Baod7db5942015-01-28 10:07:51 -0800545 sctp_assoc_t gauth_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800546 __u32 gauth_number_of_chunks;
547 uint8_t gauth_chunks[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700548};
549#define guth_number_of_chunks gauth_number_of_chunks
550enum sctp_sstat_state {
Tao Baod7db5942015-01-28 10:07:51 -0800551 SCTP_EMPTY = 0,
552 SCTP_CLOSED = 1,
553 SCTP_COOKIE_WAIT = 2,
Tao Baod7db5942015-01-28 10:07:51 -0800554 SCTP_COOKIE_ECHOED = 3,
555 SCTP_ESTABLISHED = 4,
556 SCTP_SHUTDOWN_PENDING = 5,
557 SCTP_SHUTDOWN_SENT = 6,
Tao Baod7db5942015-01-28 10:07:51 -0800558 SCTP_SHUTDOWN_RECEIVED = 7,
559 SCTP_SHUTDOWN_ACK_SENT = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700560};
561struct sctp_assoc_ids {
Tao Baod7db5942015-01-28 10:07:51 -0800562 __u32 gaids_number_of_ids;
563 sctp_assoc_t gaids_assoc_id[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700564};
565struct sctp_getaddrs_old {
Tao Baod7db5942015-01-28 10:07:51 -0800566 sctp_assoc_t assoc_id;
567 int addr_num;
568 struct sockaddr * addrs;
Ben Cheng655a7c02013-10-16 16:09:24 -0700569};
570struct sctp_getaddrs {
Tao Baod7db5942015-01-28 10:07:51 -0800571 sctp_assoc_t assoc_id;
572 __u32 addr_num;
573 __u8 addrs[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700574};
575struct sctp_assoc_stats {
Tao Baod7db5942015-01-28 10:07:51 -0800576 sctp_assoc_t sas_assoc_id;
577 struct sockaddr_storage sas_obs_rto_ipaddr;
Tao Baod7db5942015-01-28 10:07:51 -0800578 __u64 sas_maxrto;
579 __u64 sas_isacks;
580 __u64 sas_osacks;
581 __u64 sas_opackets;
Tao Baod7db5942015-01-28 10:07:51 -0800582 __u64 sas_ipackets;
583 __u64 sas_rtxchunks;
584 __u64 sas_outofseqtsns;
585 __u64 sas_idupchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800586 __u64 sas_gapcnt;
587 __u64 sas_ouodchunks;
588 __u64 sas_iuodchunks;
589 __u64 sas_oodchunks;
Tao Baod7db5942015-01-28 10:07:51 -0800590 __u64 sas_iodchunks;
591 __u64 sas_octrlchunks;
592 __u64 sas_ictrlchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700593};
Ben Cheng655a7c02013-10-16 16:09:24 -0700594#define SCTP_BINDX_ADD_ADDR 0x01
595#define SCTP_BINDX_REM_ADDR 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700596typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800597 sctp_assoc_t associd;
Tao Baod7db5942015-01-28 10:07:51 -0800598 int sd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700599} sctp_peeloff_arg_t;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800600typedef struct {
601 sctp_peeloff_arg_t p_arg;
602 unsigned flags;
603} sctp_peeloff_flags_arg_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700604struct sctp_paddrthlds {
Tao Baod7db5942015-01-28 10:07:51 -0800605 sctp_assoc_t spt_assoc_id;
Tao Baod7db5942015-01-28 10:07:51 -0800606 struct sockaddr_storage spt_address;
607 __u16 spt_pathmaxrxt;
608 __u16 spt_pathpfthld;
Ben Cheng655a7c02013-10-16 16:09:24 -0700609};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800610struct sctp_paddrthlds_v2 {
611 sctp_assoc_t spt_assoc_id;
612 struct sockaddr_storage spt_address;
613 __u16 spt_pathmaxrxt;
614 __u16 spt_pathpfthld;
615 __u16 spt_pathcpthld;
616};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800617struct sctp_prstatus {
618 sctp_assoc_t sprstat_assoc_id;
619 __u16 sprstat_sid;
620 __u16 sprstat_policy;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800621 __u64 sprstat_abandoned_unsent;
622 __u64 sprstat_abandoned_sent;
623};
624struct sctp_default_prinfo {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800625 sctp_assoc_t pr_assoc_id;
626 __u32 pr_value;
627 __u16 pr_policy;
628};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800629struct sctp_info {
630 __u32 sctpi_tag;
631 __u32 sctpi_state;
632 __u32 sctpi_rwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800633 __u16 sctpi_unackdata;
634 __u16 sctpi_penddata;
635 __u16 sctpi_instrms;
636 __u16 sctpi_outstrms;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800637 __u32 sctpi_fragmentation_point;
638 __u32 sctpi_inqueue;
639 __u32 sctpi_outqueue;
640 __u32 sctpi_overall_error;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800641 __u32 sctpi_max_burst;
642 __u32 sctpi_maxseg;
643 __u32 sctpi_peer_rwnd;
644 __u32 sctpi_peer_tag;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800645 __u8 sctpi_peer_capable;
646 __u8 sctpi_peer_sack;
647 __u16 __reserved1;
648 __u64 sctpi_isacks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800649 __u64 sctpi_osacks;
650 __u64 sctpi_opackets;
651 __u64 sctpi_ipackets;
652 __u64 sctpi_rtxchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800653 __u64 sctpi_outofseqtsns;
654 __u64 sctpi_idupchunks;
655 __u64 sctpi_gapcnt;
656 __u64 sctpi_ouodchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800657 __u64 sctpi_iuodchunks;
658 __u64 sctpi_oodchunks;
659 __u64 sctpi_iodchunks;
660 __u64 sctpi_octrlchunks;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800661 __u64 sctpi_ictrlchunks;
662 struct sockaddr_storage sctpi_p_address;
663 __s32 sctpi_p_state;
664 __u32 sctpi_p_cwnd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800665 __u32 sctpi_p_srtt;
666 __u32 sctpi_p_rto;
667 __u32 sctpi_p_hbinterval;
668 __u32 sctpi_p_pathmaxrxt;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800669 __u32 sctpi_p_sackdelay;
670 __u32 sctpi_p_sackfreq;
671 __u32 sctpi_p_ssthresh;
672 __u32 sctpi_p_partial_bytes_acked;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800673 __u32 sctpi_p_flight_size;
674 __u16 sctpi_p_error;
675 __u16 __reserved2;
676 __u32 sctpi_s_autoclose;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800677 __u32 sctpi_s_adaptation_ind;
678 __u32 sctpi_s_pd_point;
679 __u8 sctpi_s_nodelay;
680 __u8 sctpi_s_disable_fragments;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800681 __u8 sctpi_s_v4mapped;
682 __u8 sctpi_s_frag_interleave;
683 __u32 sctpi_s_type;
684 __u32 __reserved3;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800685};
Christopher Ferris525ce912017-07-26 13:12:53 -0700686struct sctp_reset_streams {
687 sctp_assoc_t srs_assoc_id;
688 uint16_t srs_flags;
689 uint16_t srs_number_streams;
690 uint16_t srs_stream_list[];
691};
692struct sctp_add_streams {
693 sctp_assoc_t sas_assoc_id;
694 uint16_t sas_instrms;
695 uint16_t sas_outstrms;
696};
Christopher Ferrisd842e432019-03-07 10:21:59 -0800697struct sctp_event {
698 sctp_assoc_t se_assoc_id;
699 uint16_t se_type;
700 uint8_t se_on;
701};
Christopher Ferris05667cd2021-02-16 16:01:34 -0800702struct sctp_udpencaps {
703 sctp_assoc_t sue_assoc_id;
704 struct sockaddr_storage sue_address;
705 uint16_t sue_port;
706};
Christopher Ferris934ec942018-01-31 15:29:16 -0800707enum sctp_sched_type {
708 SCTP_SS_FCFS,
Christopher Ferris86a48372019-01-10 14:14:59 -0800709 SCTP_SS_DEFAULT = SCTP_SS_FCFS,
Christopher Ferris934ec942018-01-31 15:29:16 -0800710 SCTP_SS_PRIO,
711 SCTP_SS_RR,
712 SCTP_SS_MAX = SCTP_SS_RR
713};
Christopher Ferris3a39c0b2021-09-02 00:03:38 +0000714struct sctp_probeinterval {
715 sctp_assoc_t spi_assoc_id;
716 struct sockaddr_storage spi_address;
717 __u32 spi_interval;
718};
Ben Cheng655a7c02013-10-16 16:09:24 -0700719#endif