blob: d0952714953cc4a9d9eac8b24b2ee80f55931639 [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>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24typedef __s32 sctp_assoc_t;
25#define SCTP_RTOINFO 0
26#define SCTP_ASSOCINFO 1
27#define SCTP_INITMSG 2
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SCTP_NODELAY 3
30#define SCTP_AUTOCLOSE 4
31#define SCTP_SET_PEER_PRIMARY_ADDR 5
32#define SCTP_PRIMARY_ADDR 6
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#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
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SCTP_EVENTS 11
40#define SCTP_I_WANT_MAPPED_V4_ADDR 12
41#define SCTP_MAXSEG 13
42#define SCTP_STATUS 14
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SCTP_GET_PEER_ADDR_INFO 15
45#define SCTP_DELAYED_ACK_TIME 16
46#define SCTP_DELAYED_ACK SCTP_DELAYED_ACK_TIME
47#define SCTP_DELAYED_SACK SCTP_DELAYED_ACK_TIME
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SCTP_CONTEXT 17
50#define SCTP_FRAGMENT_INTERLEAVE 18
51#define SCTP_PARTIAL_DELIVERY_POINT 19
52#define SCTP_MAX_BURST 20
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define SCTP_AUTH_CHUNK 21
55#define SCTP_HMAC_IDENT 22
56#define SCTP_AUTH_KEY 23
57#define SCTP_AUTH_ACTIVE_KEY 24
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define SCTP_AUTH_DELETE_KEY 25
60#define SCTP_PEER_AUTH_CHUNKS 26
61#define SCTP_LOCAL_AUTH_CHUNKS 27
62#define SCTP_GET_ASSOC_NUMBER 28
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SCTP_GET_ASSOC_ID_LIST 29
65#define SCTP_AUTO_ASCONF 30
66#define SCTP_PEER_ADDR_THLDS 31
Christopher Ferris82d75042015-01-26 10:57:07 -080067#define SCTP_RECVRCVINFO 32
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080069#define SCTP_RECVNXTINFO 33
70#define SCTP_DEFAULT_SNDINFO 34
71#define SCTP_SOCKOPT_BINDX_ADD 100
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define SCTP_SOCKOPT_BINDX_REM 101
Christopher Ferris82d75042015-01-26 10:57:07 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define SCTP_SOCKOPT_PEELOFF 102
75#define SCTP_SOCKOPT_CONNECTX_OLD 107
76#define SCTP_GET_PEER_ADDRS 108
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define SCTP_GET_LOCAL_ADDRS 109
Christopher Ferris82d75042015-01-26 10:57:07 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define SCTP_SOCKOPT_CONNECTX 110
80#define SCTP_SOCKOPT_CONNECTX3 111
81#define SCTP_GET_ASSOC_STATS 112
Christopher Ferris82d75042015-01-26 10:57:07 -080082enum sctp_msg_flags {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080084 MSG_NOTIFICATION = 0x8000,
85#define MSG_NOTIFICATION MSG_NOTIFICATION
86};
Ben Cheng655a7c02013-10-16 16:09:24 -070087struct sctp_initmsg {
Christopher Ferris82d75042015-01-26 10:57:07 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 __u16 sinit_num_ostreams;
90 __u16 sinit_max_instreams;
91 __u16 sinit_max_attempts;
Ben Cheng655a7c02013-10-16 16:09:24 -070092 __u16 sinit_max_init_timeo;
Christopher Ferris82d75042015-01-26 10:57:07 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094};
95struct sctp_sndrcvinfo {
96 __u16 sinfo_stream;
Ben Cheng655a7c02013-10-16 16:09:24 -070097 __u16 sinfo_ssn;
Christopher Ferris82d75042015-01-26 10:57:07 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099 __u16 sinfo_flags;
100 __u32 sinfo_ppid;
101 __u32 sinfo_context;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102 __u32 sinfo_timetolive;
Christopher Ferris82d75042015-01-26 10:57:07 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104 __u32 sinfo_tsn;
105 __u32 sinfo_cumtsn;
106 sctp_assoc_t sinfo_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109struct sctp_sndinfo {
110 __u16 snd_sid;
111 __u16 snd_flags;
112 __u32 snd_ppid;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 __u32 snd_context;
115 sctp_assoc_t snd_assoc_id;
116};
117struct sctp_rcvinfo {
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 __u16 rcv_sid;
120 __u16 rcv_ssn;
121 __u16 rcv_flags;
122 __u32 rcv_ppid;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 __u32 rcv_tsn;
125 __u32 rcv_cumtsn;
126 __u32 rcv_context;
127 sctp_assoc_t rcv_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129};
Christopher Ferris82d75042015-01-26 10:57:07 -0800130struct sctp_nxtinfo {
131 __u16 nxt_sid;
132 __u16 nxt_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -0800134 __u32 nxt_ppid;
135 __u32 nxt_length;
136 sctp_assoc_t nxt_assoc_id;
137};
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139enum sctp_sinfo_flags {
140 SCTP_UNORDERED = (1 << 0),
141 SCTP_ADDR_OVER = (1 << 1),
142 SCTP_ABORT = (1 << 2),
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 SCTP_SACK_IMMEDIATELY = (1 << 3),
145 SCTP_NOTIFICATION = MSG_NOTIFICATION,
146 SCTP_EOF = MSG_FIN,
Ben Cheng655a7c02013-10-16 16:09:24 -0700147};
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149typedef union {
150 __u8 raw;
151 struct sctp_initmsg init;
152 struct sctp_sndrcvinfo sndrcv;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154} sctp_cmsg_data_t;
155typedef enum sctp_cmsg_type {
156 SCTP_INIT,
157#define SCTP_INIT SCTP_INIT
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 SCTP_SNDRCV,
160#define SCTP_SNDRCV SCTP_SNDRCV
Christopher Ferris82d75042015-01-26 10:57:07 -0800161 SCTP_SNDINFO,
162#define SCTP_SNDINFO SCTP_SNDINFO
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 SCTP_RCVINFO,
165#define SCTP_RCVINFO SCTP_RCVINFO
166 SCTP_NXTINFO,
167#define SCTP_NXTINFO SCTP_NXTINFO
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169} sctp_cmsg_t;
170struct sctp_assoc_change {
Ben Cheng655a7c02013-10-16 16:09:24 -0700171 __u16 sac_type;
172 __u16 sac_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174 __u32 sac_length;
175 __u16 sac_state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700176 __u16 sac_error;
177 __u16 sac_outbound_streams;
Christopher Ferris82d75042015-01-26 10:57:07 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179 __u16 sac_inbound_streams;
180 sctp_assoc_t sac_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700181 __u8 sac_info[0];
182};
Christopher Ferris82d75042015-01-26 10:57:07 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184enum sctp_sac_state {
185 SCTP_COMM_UP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700186 SCTP_COMM_LOST,
187 SCTP_RESTART,
Christopher Ferris82d75042015-01-26 10:57:07 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189 SCTP_SHUTDOWN_COMP,
190 SCTP_CANT_STR_ASSOC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700191};
192struct sctp_paddr_change {
Christopher Ferris82d75042015-01-26 10:57:07 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194 __u16 spc_type;
195 __u16 spc_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700196 __u32 spc_length;
197 struct sockaddr_storage spc_aaddr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199 int spc_state;
200 int spc_error;
Ben Cheng655a7c02013-10-16 16:09:24 -0700201 sctp_assoc_t spc_assoc_id;
202} __attribute__((packed, aligned(4)));
Christopher Ferris82d75042015-01-26 10:57:07 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700204enum sctp_spc_state {
205 SCTP_ADDR_AVAILABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700206 SCTP_ADDR_UNREACHABLE,
207 SCTP_ADDR_REMOVED,
Christopher Ferris82d75042015-01-26 10:57:07 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700209 SCTP_ADDR_ADDED,
210 SCTP_ADDR_MADE_PRIM,
Ben Cheng655a7c02013-10-16 16:09:24 -0700211 SCTP_ADDR_CONFIRMED,
212};
Christopher Ferris82d75042015-01-26 10:57:07 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214struct sctp_remote_error {
215 __u16 sre_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700216 __u16 sre_flags;
217 __u32 sre_length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219 __u16 sre_error;
220 sctp_assoc_t sre_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700221 __u8 sre_data[0];
222};
Christopher Ferris82d75042015-01-26 10:57:07 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224struct sctp_send_failed {
225 __u16 ssf_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700226 __u16 ssf_flags;
227 __u32 ssf_length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229 __u32 ssf_error;
230 struct sctp_sndrcvinfo ssf_info;
Ben Cheng655a7c02013-10-16 16:09:24 -0700231 sctp_assoc_t ssf_assoc_id;
232 __u8 ssf_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700234};
235enum sctp_ssf_flags {
Ben Cheng655a7c02013-10-16 16:09:24 -0700236 SCTP_DATA_UNSENT,
237 SCTP_DATA_SENT,
Christopher Ferris82d75042015-01-26 10:57:07 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239};
240struct sctp_shutdown_event {
Ben Cheng655a7c02013-10-16 16:09:24 -0700241 __u16 sse_type;
242 __u16 sse_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244 __u32 sse_length;
245 sctp_assoc_t sse_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700246};
247struct sctp_adaptation_event {
Christopher Ferris82d75042015-01-26 10:57:07 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700249 __u16 sai_type;
250 __u16 sai_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700251 __u32 sai_length;
252 __u32 sai_adaptation_ind;
Christopher Ferris82d75042015-01-26 10:57:07 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700254 sctp_assoc_t sai_assoc_id;
255};
Ben Cheng655a7c02013-10-16 16:09:24 -0700256struct sctp_pdapi_event {
257 __u16 pdapi_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259 __u16 pdapi_flags;
260 __u32 pdapi_length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700261 __u32 pdapi_indication;
262 sctp_assoc_t pdapi_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264};
265enum { SCTP_PARTIAL_DELIVERY_ABORTED=0, };
Ben Cheng655a7c02013-10-16 16:09:24 -0700266struct sctp_authkey_event {
267 __u16 auth_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269 __u16 auth_flags;
270 __u32 auth_length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700271 __u16 auth_keynumber;
272 __u16 auth_altkeynumber;
Christopher Ferris82d75042015-01-26 10:57:07 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274 __u32 auth_indication;
275 sctp_assoc_t auth_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700276};
277enum { SCTP_AUTH_NEWKEY = 0, };
Christopher Ferris82d75042015-01-26 10:57:07 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700279struct sctp_sender_dry_event {
280 __u16 sender_dry_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700281 __u16 sender_dry_flags;
282 __u32 sender_dry_length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284 sctp_assoc_t sender_dry_assoc_id;
285};
Ben Cheng655a7c02013-10-16 16:09:24 -0700286struct sctp_event_subscribe {
287 __u8 sctp_data_io_event;
Christopher Ferris82d75042015-01-26 10:57:07 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700289 __u8 sctp_association_event;
290 __u8 sctp_address_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700291 __u8 sctp_send_failure_event;
292 __u8 sctp_peer_error_event;
Christopher Ferris82d75042015-01-26 10:57:07 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700294 __u8 sctp_shutdown_event;
295 __u8 sctp_partial_delivery_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700296 __u8 sctp_adaptation_layer_event;
297 __u8 sctp_authentication_event;
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299 __u8 sctp_sender_dry_event;
300};
Ben Cheng655a7c02013-10-16 16:09:24 -0700301union sctp_notification {
302 struct {
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304 __u16 sn_type;
305 __u16 sn_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700306 __u32 sn_length;
307 } sn_header;
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309 struct sctp_assoc_change sn_assoc_change;
310 struct sctp_paddr_change sn_paddr_change;
Ben Cheng655a7c02013-10-16 16:09:24 -0700311 struct sctp_remote_error sn_remote_error;
312 struct sctp_send_failed sn_send_failed;
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314 struct sctp_shutdown_event sn_shutdown_event;
315 struct sctp_adaptation_event sn_adaptation_event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700316 struct sctp_pdapi_event sn_pdapi_event;
317 struct sctp_authkey_event sn_authkey_event;
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319 struct sctp_sender_dry_event sn_sender_dry_event;
320};
Ben Cheng655a7c02013-10-16 16:09:24 -0700321enum sctp_sn_type {
322 SCTP_SN_TYPE_BASE = (1<<15),
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324 SCTP_ASSOC_CHANGE,
325#define SCTP_ASSOC_CHANGE SCTP_ASSOC_CHANGE
Ben Cheng655a7c02013-10-16 16:09:24 -0700326 SCTP_PEER_ADDR_CHANGE,
327#define SCTP_PEER_ADDR_CHANGE SCTP_PEER_ADDR_CHANGE
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329 SCTP_SEND_FAILED,
330#define SCTP_SEND_FAILED SCTP_SEND_FAILED
Ben Cheng655a7c02013-10-16 16:09:24 -0700331 SCTP_REMOTE_ERROR,
332#define SCTP_REMOTE_ERROR SCTP_REMOTE_ERROR
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334 SCTP_SHUTDOWN_EVENT,
335#define SCTP_SHUTDOWN_EVENT SCTP_SHUTDOWN_EVENT
Ben Cheng655a7c02013-10-16 16:09:24 -0700336 SCTP_PARTIAL_DELIVERY_EVENT,
337#define SCTP_PARTIAL_DELIVERY_EVENT SCTP_PARTIAL_DELIVERY_EVENT
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700339 SCTP_ADAPTATION_INDICATION,
340#define SCTP_ADAPTATION_INDICATION SCTP_ADAPTATION_INDICATION
Ben Cheng655a7c02013-10-16 16:09:24 -0700341 SCTP_AUTHENTICATION_EVENT,
342#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344 SCTP_SENDER_DRY_EVENT,
345#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT
Ben Cheng655a7c02013-10-16 16:09:24 -0700346};
347typedef enum sctp_sn_error {
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349 SCTP_FAILED_THRESHOLD,
350 SCTP_RECEIVED_SACK,
Ben Cheng655a7c02013-10-16 16:09:24 -0700351 SCTP_HEARTBEAT_SUCCESS,
352 SCTP_RESPONSE_TO_USER_REQ,
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700354 SCTP_INTERNAL_ERROR,
355 SCTP_SHUTDOWN_GUARD_EXPIRES,
Ben Cheng655a7c02013-10-16 16:09:24 -0700356 SCTP_PEER_FAULTY,
357} sctp_sn_error_t;
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700359struct sctp_rtoinfo {
360 sctp_assoc_t srto_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700361 __u32 srto_initial;
362 __u32 srto_max;
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364 __u32 srto_min;
365};
Ben Cheng655a7c02013-10-16 16:09:24 -0700366struct sctp_assocparams {
367 sctp_assoc_t sasoc_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369 __u16 sasoc_asocmaxrxt;
370 __u16 sasoc_number_peer_destinations;
Ben Cheng655a7c02013-10-16 16:09:24 -0700371 __u32 sasoc_peer_rwnd;
372 __u32 sasoc_local_rwnd;
Christopher Ferris82d75042015-01-26 10:57:07 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374 __u32 sasoc_cookie_life;
375};
Ben Cheng655a7c02013-10-16 16:09:24 -0700376struct sctp_setpeerprim {
377 sctp_assoc_t sspp_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379 struct sockaddr_storage sspp_addr;
380} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700381struct sctp_prim {
382 sctp_assoc_t ssp_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384 struct sockaddr_storage ssp_addr;
385} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -0700386#define sctp_setprim sctp_prim
387struct sctp_setadaptation {
Christopher Ferris82d75042015-01-26 10:57:07 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700389 __u32 ssb_adaptation_ind;
390};
Ben Cheng655a7c02013-10-16 16:09:24 -0700391enum sctp_spp_flags {
392 SPP_HB_ENABLE = 1<<0,
Christopher Ferris82d75042015-01-26 10:57:07 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394 SPP_HB_DISABLE = 1<<1,
395 SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700396 SPP_HB_DEMAND = 1<<2,
397 SPP_PMTUD_ENABLE = 1<<3,
Christopher Ferris82d75042015-01-26 10:57:07 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399 SPP_PMTUD_DISABLE = 1<<4,
400 SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700401 SPP_SACKDELAY_ENABLE = 1<<5,
402 SPP_SACKDELAY_DISABLE = 1<<6,
Christopher Ferris82d75042015-01-26 10:57:07 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404 SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE,
405 SPP_HB_TIME_IS_ZERO = 1<<7,
Ben Cheng655a7c02013-10-16 16:09:24 -0700406};
407struct sctp_paddrparams {
Christopher Ferris82d75042015-01-26 10:57:07 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409 sctp_assoc_t spp_assoc_id;
410 struct sockaddr_storage spp_address;
Ben Cheng655a7c02013-10-16 16:09:24 -0700411 __u32 spp_hbinterval;
412 __u16 spp_pathmaxrxt;
Christopher Ferris82d75042015-01-26 10:57:07 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414 __u32 spp_pathmtu;
415 __u32 spp_sackdelay;
Ben Cheng655a7c02013-10-16 16:09:24 -0700416 __u32 spp_flags;
417} __attribute__((packed, aligned(4)));
Christopher Ferris82d75042015-01-26 10:57:07 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419struct sctp_authchunk {
420 __u8 sauth_chunk;
Ben Cheng655a7c02013-10-16 16:09:24 -0700421};
422enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700424 SCTP_AUTH_HMAC_ID_SHA1 = 1,
425 SCTP_AUTH_HMAC_ID_SHA256 = 3,
Ben Cheng655a7c02013-10-16 16:09:24 -0700426};
427struct sctp_hmacalgo {
Christopher Ferris82d75042015-01-26 10:57:07 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429 __u32 shmac_num_idents;
430 __u16 shmac_idents[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700431};
432#define shmac_number_of_idents shmac_num_idents
Christopher Ferris82d75042015-01-26 10:57:07 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434struct sctp_authkey {
435 sctp_assoc_t sca_assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700436 __u16 sca_keynumber;
437 __u16 sca_keylength;
Christopher Ferris82d75042015-01-26 10:57:07 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439 __u8 sca_key[];
440};
Ben Cheng655a7c02013-10-16 16:09:24 -0700441struct sctp_authkeyid {
442 sctp_assoc_t scact_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700444 __u16 scact_keynumber;
445};
Ben Cheng655a7c02013-10-16 16:09:24 -0700446struct sctp_sack_info {
447 sctp_assoc_t sack_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449 uint32_t sack_delay;
450 uint32_t sack_freq;
Ben Cheng655a7c02013-10-16 16:09:24 -0700451};
452struct sctp_assoc_value {
Christopher Ferris82d75042015-01-26 10:57:07 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454 sctp_assoc_t assoc_id;
455 uint32_t assoc_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700456};
457struct sctp_paddrinfo {
Christopher Ferris82d75042015-01-26 10:57:07 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700459 sctp_assoc_t spinfo_assoc_id;
460 struct sockaddr_storage spinfo_address;
Ben Cheng655a7c02013-10-16 16:09:24 -0700461 __s32 spinfo_state;
462 __u32 spinfo_cwnd;
Christopher Ferris82d75042015-01-26 10:57:07 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700464 __u32 spinfo_srtt;
465 __u32 spinfo_rto;
Ben Cheng655a7c02013-10-16 16:09:24 -0700466 __u32 spinfo_mtu;
467} __attribute__((packed, aligned(4)));
Christopher Ferris82d75042015-01-26 10:57:07 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700469enum sctp_spinfo_state {
470 SCTP_INACTIVE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700471 SCTP_PF,
472 SCTP_ACTIVE,
Christopher Ferris82d75042015-01-26 10:57:07 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700474 SCTP_UNCONFIRMED,
475 SCTP_UNKNOWN = 0xffff
Ben Cheng655a7c02013-10-16 16:09:24 -0700476};
477struct sctp_status {
Christopher Ferris82d75042015-01-26 10:57:07 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700479 sctp_assoc_t sstat_assoc_id;
480 __s32 sstat_state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700481 __u32 sstat_rwnd;
482 __u16 sstat_unackdata;
Christopher Ferris82d75042015-01-26 10:57:07 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700484 __u16 sstat_penddata;
485 __u16 sstat_instrms;
Ben Cheng655a7c02013-10-16 16:09:24 -0700486 __u16 sstat_outstrms;
487 __u32 sstat_fragmentation_point;
Christopher Ferris82d75042015-01-26 10:57:07 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700489 struct sctp_paddrinfo sstat_primary;
490};
Ben Cheng655a7c02013-10-16 16:09:24 -0700491struct sctp_authchunks {
492 sctp_assoc_t gauth_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700494 __u32 gauth_number_of_chunks;
495 uint8_t gauth_chunks[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700496};
497#define guth_number_of_chunks gauth_number_of_chunks
Christopher Ferris82d75042015-01-26 10:57:07 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700499enum sctp_sstat_state {
500 SCTP_EMPTY = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700501 SCTP_CLOSED = 1,
502 SCTP_COOKIE_WAIT = 2,
Christopher Ferris82d75042015-01-26 10:57:07 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700504 SCTP_COOKIE_ECHOED = 3,
505 SCTP_ESTABLISHED = 4,
Ben Cheng655a7c02013-10-16 16:09:24 -0700506 SCTP_SHUTDOWN_PENDING = 5,
507 SCTP_SHUTDOWN_SENT = 6,
Christopher Ferris82d75042015-01-26 10:57:07 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700509 SCTP_SHUTDOWN_RECEIVED = 7,
510 SCTP_SHUTDOWN_ACK_SENT = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -0700511};
512struct sctp_assoc_ids {
Christopher Ferris82d75042015-01-26 10:57:07 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514 __u32 gaids_number_of_ids;
515 sctp_assoc_t gaids_assoc_id[];
Ben Cheng655a7c02013-10-16 16:09:24 -0700516};
517struct sctp_getaddrs_old {
Christopher Ferris82d75042015-01-26 10:57:07 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519 sctp_assoc_t assoc_id;
520 int addr_num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700521 struct sockaddr *addrs;
522};
Christopher Ferris82d75042015-01-26 10:57:07 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700524struct sctp_getaddrs {
525 sctp_assoc_t assoc_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700526 __u32 addr_num;
527 __u8 addrs[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700529};
530struct sctp_assoc_stats {
Ben Cheng655a7c02013-10-16 16:09:24 -0700531 sctp_assoc_t sas_assoc_id;
532 struct sockaddr_storage sas_obs_rto_ipaddr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700534 __u64 sas_maxrto;
535 __u64 sas_isacks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700536 __u64 sas_osacks;
537 __u64 sas_opackets;
Christopher Ferris82d75042015-01-26 10:57:07 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700539 __u64 sas_ipackets;
540 __u64 sas_rtxchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700541 __u64 sas_outofseqtsns;
542 __u64 sas_idupchunks;
Christopher Ferris82d75042015-01-26 10:57:07 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700544 __u64 sas_gapcnt;
545 __u64 sas_ouodchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700546 __u64 sas_iuodchunks;
547 __u64 sas_oodchunks;
Christopher Ferris82d75042015-01-26 10:57:07 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700549 __u64 sas_iodchunks;
550 __u64 sas_octrlchunks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700551 __u64 sas_ictrlchunks;
552};
Ben Cheng655a7c02013-10-16 16:09:24 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700554#define SCTP_BINDX_ADD_ADDR 0x01
555#define SCTP_BINDX_REM_ADDR 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -0700556typedef struct {
557 sctp_assoc_t associd;
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700559 int sd;
560} sctp_peeloff_arg_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700561struct sctp_paddrthlds {
562 sctp_assoc_t spt_assoc_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564 struct sockaddr_storage spt_address;
565 __u16 spt_pathmaxrxt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700566 __u16 spt_pathpfthld;
567};
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700569#endif