Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | typedef __s32 sctp_assoc_t; |
| 24 | #define SCTP_RTOINFO 0 |
| 25 | #define SCTP_ASSOCINFO 1 |
| 26 | #define SCTP_INITMSG 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define SCTP_NODELAY 3 |
| 28 | #define SCTP_AUTOCLOSE 4 |
| 29 | #define SCTP_SET_PEER_PRIMARY_ADDR 5 |
| 30 | #define SCTP_PRIMARY_ADDR 6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SCTP_ADAPTATION_LAYER 7 |
| 32 | #define SCTP_DISABLE_FRAGMENTS 8 |
| 33 | #define SCTP_PEER_ADDR_PARAMS 9 |
| 34 | #define SCTP_DEFAULT_SEND_PARAM 10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define SCTP_EVENTS 11 |
| 36 | #define SCTP_I_WANT_MAPPED_V4_ADDR 12 |
| 37 | #define SCTP_MAXSEG 13 |
| 38 | #define SCTP_STATUS 14 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define SCTP_GET_PEER_ADDR_INFO 15 |
| 40 | #define SCTP_DELAYED_ACK_TIME 16 |
| 41 | #define SCTP_DELAYED_ACK SCTP_DELAYED_ACK_TIME |
| 42 | #define SCTP_DELAYED_SACK SCTP_DELAYED_ACK_TIME |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define SCTP_CONTEXT 17 |
| 44 | #define SCTP_FRAGMENT_INTERLEAVE 18 |
| 45 | #define SCTP_PARTIAL_DELIVERY_POINT 19 |
| 46 | #define SCTP_MAX_BURST 20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define SCTP_AUTH_CHUNK 21 |
| 48 | #define SCTP_HMAC_IDENT 22 |
| 49 | #define SCTP_AUTH_KEY 23 |
| 50 | #define SCTP_AUTH_ACTIVE_KEY 24 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define SCTP_AUTH_DELETE_KEY 25 |
| 52 | #define SCTP_PEER_AUTH_CHUNKS 26 |
| 53 | #define SCTP_LOCAL_AUTH_CHUNKS 27 |
| 54 | #define SCTP_GET_ASSOC_NUMBER 28 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | #define SCTP_GET_ASSOC_ID_LIST 29 |
| 56 | #define SCTP_AUTO_ASCONF 30 |
| 57 | #define SCTP_PEER_ADDR_THLDS 31 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 58 | #define SCTP_RECVRCVINFO 32 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 59 | #define SCTP_RECVNXTINFO 33 |
| 60 | #define SCTP_DEFAULT_SNDINFO 34 |
| 61 | #define SCTP_SOCKOPT_BINDX_ADD 100 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 62 | #define SCTP_SOCKOPT_BINDX_REM 101 |
| 63 | #define SCTP_SOCKOPT_PEELOFF 102 |
| 64 | #define SCTP_SOCKOPT_CONNECTX_OLD 107 |
| 65 | #define SCTP_GET_PEER_ADDRS 108 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 66 | #define SCTP_GET_LOCAL_ADDRS 109 |
| 67 | #define SCTP_SOCKOPT_CONNECTX 110 |
| 68 | #define SCTP_SOCKOPT_CONNECTX3 111 |
| 69 | #define SCTP_GET_ASSOC_STATS 112 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 70 | #define SCTP_PR_SUPPORTED 113 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 71 | #define SCTP_DEFAULT_PRINFO 114 |
| 72 | #define SCTP_PR_ASSOC_STATUS 115 |
| 73 | #define SCTP_PR_SCTP_NONE 0x0000 |
| 74 | #define SCTP_PR_SCTP_TTL 0x0010 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 75 | #define SCTP_PR_SCTP_RTX 0x0020 |
| 76 | #define SCTP_PR_SCTP_PRIO 0x0030 |
| 77 | #define SCTP_PR_SCTP_MAX SCTP_PR_SCTP_PRIO |
| 78 | #define SCTP_PR_SCTP_MASK 0x0030 |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 79 | #define __SCTP_PR_INDEX(x) ((x >> 4) - 1) |
| 80 | #define SCTP_PR_INDEX(x) __SCTP_PR_INDEX(SCTP_PR_SCTP_ ##x) |
| 81 | #define SCTP_PR_POLICY(x) ((x) & SCTP_PR_SCTP_MASK) |
| 82 | #define SCTP_PR_SET_POLICY(flags,x) do { flags &= ~SCTP_PR_SCTP_MASK; flags |= x; } while(0) |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 83 | #define SCTP_PR_TTL_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_TTL) |
| 84 | #define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX) |
| 85 | #define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 86 | enum sctp_msg_flags { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 87 | MSG_NOTIFICATION = 0x8000, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 88 | #define MSG_NOTIFICATION MSG_NOTIFICATION |
| 89 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | struct sctp_initmsg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 91 | __u16 sinit_num_ostreams; |
| 92 | __u16 sinit_max_instreams; |
| 93 | __u16 sinit_max_attempts; |
| 94 | __u16 sinit_max_init_timeo; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 95 | }; |
| 96 | struct sctp_sndrcvinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 97 | __u16 sinfo_stream; |
| 98 | __u16 sinfo_ssn; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 99 | __u16 sinfo_flags; |
| 100 | __u32 sinfo_ppid; |
| 101 | __u32 sinfo_context; |
| 102 | __u32 sinfo_timetolive; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 103 | __u32 sinfo_tsn; |
| 104 | __u32 sinfo_cumtsn; |
| 105 | sctp_assoc_t sinfo_assoc_id; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 106 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 107 | struct sctp_sndinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 108 | __u16 snd_sid; |
| 109 | __u16 snd_flags; |
| 110 | __u32 snd_ppid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 111 | __u32 snd_context; |
| 112 | sctp_assoc_t snd_assoc_id; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 113 | }; |
| 114 | struct sctp_rcvinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 115 | __u16 rcv_sid; |
| 116 | __u16 rcv_ssn; |
| 117 | __u16 rcv_flags; |
| 118 | __u32 rcv_ppid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 119 | __u32 rcv_tsn; |
| 120 | __u32 rcv_cumtsn; |
| 121 | __u32 rcv_context; |
| 122 | sctp_assoc_t rcv_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 123 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 124 | struct sctp_nxtinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 125 | __u16 nxt_sid; |
| 126 | __u16 nxt_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 127 | __u32 nxt_ppid; |
| 128 | __u32 nxt_length; |
| 129 | sctp_assoc_t nxt_assoc_id; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 130 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 131 | enum sctp_sinfo_flags { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 132 | SCTP_UNORDERED = (1 << 0), |
| 133 | SCTP_ADDR_OVER = (1 << 1), |
| 134 | SCTP_ABORT = (1 << 2), |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 135 | SCTP_SACK_IMMEDIATELY = (1 << 3), |
| 136 | SCTP_NOTIFICATION = MSG_NOTIFICATION, |
| 137 | SCTP_EOF = MSG_FIN, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 138 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 139 | typedef union { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 140 | __u8 raw; |
| 141 | struct sctp_initmsg init; |
| 142 | struct sctp_sndrcvinfo sndrcv; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 143 | } sctp_cmsg_data_t; |
| 144 | typedef enum sctp_cmsg_type { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 145 | SCTP_INIT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 146 | #define SCTP_INIT SCTP_INIT |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 147 | SCTP_SNDRCV, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 148 | #define SCTP_SNDRCV SCTP_SNDRCV |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 149 | SCTP_SNDINFO, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 150 | #define SCTP_SNDINFO SCTP_SNDINFO |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 151 | SCTP_RCVINFO, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 152 | #define SCTP_RCVINFO SCTP_RCVINFO |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 153 | SCTP_NXTINFO, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 154 | #define SCTP_NXTINFO SCTP_NXTINFO |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 155 | } sctp_cmsg_t; |
| 156 | struct sctp_assoc_change { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 157 | __u16 sac_type; |
| 158 | __u16 sac_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 159 | __u32 sac_length; |
| 160 | __u16 sac_state; |
| 161 | __u16 sac_error; |
| 162 | __u16 sac_outbound_streams; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 163 | __u16 sac_inbound_streams; |
| 164 | sctp_assoc_t sac_assoc_id; |
| 165 | __u8 sac_info[0]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 166 | }; |
| 167 | enum sctp_sac_state { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 168 | SCTP_COMM_UP, |
| 169 | SCTP_COMM_LOST, |
| 170 | SCTP_RESTART, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 171 | SCTP_SHUTDOWN_COMP, |
| 172 | SCTP_CANT_STR_ASSOC, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 173 | }; |
| 174 | struct sctp_paddr_change { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 175 | __u16 spc_type; |
| 176 | __u16 spc_flags; |
| 177 | __u32 spc_length; |
| 178 | struct sockaddr_storage spc_aaddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 179 | int spc_state; |
| 180 | int spc_error; |
| 181 | sctp_assoc_t spc_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 182 | } __attribute__((packed, aligned(4))); |
| 183 | enum sctp_spc_state { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 184 | SCTP_ADDR_AVAILABLE, |
| 185 | SCTP_ADDR_UNREACHABLE, |
| 186 | SCTP_ADDR_REMOVED, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 187 | SCTP_ADDR_ADDED, |
| 188 | SCTP_ADDR_MADE_PRIM, |
| 189 | SCTP_ADDR_CONFIRMED, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 190 | }; |
| 191 | struct sctp_remote_error { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 192 | __u16 sre_type; |
| 193 | __u16 sre_flags; |
| 194 | __u32 sre_length; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 195 | __u16 sre_error; |
| 196 | sctp_assoc_t sre_assoc_id; |
| 197 | __u8 sre_data[0]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 198 | }; |
| 199 | struct sctp_send_failed { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 200 | __u16 ssf_type; |
| 201 | __u16 ssf_flags; |
| 202 | __u32 ssf_length; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 203 | __u32 ssf_error; |
| 204 | struct sctp_sndrcvinfo ssf_info; |
| 205 | sctp_assoc_t ssf_assoc_id; |
| 206 | __u8 ssf_data[0]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 207 | }; |
| 208 | enum sctp_ssf_flags { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 209 | SCTP_DATA_UNSENT, |
| 210 | SCTP_DATA_SENT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 211 | }; |
| 212 | struct sctp_shutdown_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 213 | __u16 sse_type; |
| 214 | __u16 sse_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 215 | __u32 sse_length; |
| 216 | sctp_assoc_t sse_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 217 | }; |
| 218 | struct sctp_adaptation_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 219 | __u16 sai_type; |
| 220 | __u16 sai_flags; |
| 221 | __u32 sai_length; |
| 222 | __u32 sai_adaptation_ind; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 223 | sctp_assoc_t sai_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 224 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 225 | struct sctp_pdapi_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 226 | __u16 pdapi_type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 227 | __u16 pdapi_flags; |
| 228 | __u32 pdapi_length; |
| 229 | __u32 pdapi_indication; |
| 230 | sctp_assoc_t pdapi_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 231 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 232 | enum { |
| 233 | SCTP_PARTIAL_DELIVERY_ABORTED = 0, |
| 234 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 235 | struct sctp_authkey_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 236 | __u16 auth_type; |
| 237 | __u16 auth_flags; |
| 238 | __u32 auth_length; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 239 | __u16 auth_keynumber; |
| 240 | __u16 auth_altkeynumber; |
| 241 | __u32 auth_indication; |
| 242 | sctp_assoc_t auth_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 243 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 244 | enum { |
| 245 | SCTP_AUTH_NEWKEY = 0, |
| 246 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 247 | struct sctp_sender_dry_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 248 | __u16 sender_dry_type; |
| 249 | __u16 sender_dry_flags; |
| 250 | __u32 sender_dry_length; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 251 | sctp_assoc_t sender_dry_assoc_id; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 252 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 253 | struct sctp_event_subscribe { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 254 | __u8 sctp_data_io_event; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 255 | __u8 sctp_association_event; |
| 256 | __u8 sctp_address_event; |
| 257 | __u8 sctp_send_failure_event; |
| 258 | __u8 sctp_peer_error_event; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 259 | __u8 sctp_shutdown_event; |
| 260 | __u8 sctp_partial_delivery_event; |
| 261 | __u8 sctp_adaptation_layer_event; |
| 262 | __u8 sctp_authentication_event; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 263 | __u8 sctp_sender_dry_event; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 264 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 265 | union sctp_notification { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 266 | struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 267 | __u16 sn_type; |
| 268 | __u16 sn_flags; |
| 269 | __u32 sn_length; |
| 270 | } sn_header; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 271 | struct sctp_assoc_change sn_assoc_change; |
| 272 | struct sctp_paddr_change sn_paddr_change; |
| 273 | struct sctp_remote_error sn_remote_error; |
| 274 | struct sctp_send_failed sn_send_failed; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 275 | struct sctp_shutdown_event sn_shutdown_event; |
| 276 | struct sctp_adaptation_event sn_adaptation_event; |
| 277 | struct sctp_pdapi_event sn_pdapi_event; |
| 278 | struct sctp_authkey_event sn_authkey_event; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 279 | struct sctp_sender_dry_event sn_sender_dry_event; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 280 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 281 | enum sctp_sn_type { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 282 | SCTP_SN_TYPE_BASE = (1 << 15), |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 283 | SCTP_ASSOC_CHANGE, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 284 | #define SCTP_ASSOC_CHANGE SCTP_ASSOC_CHANGE |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 285 | SCTP_PEER_ADDR_CHANGE, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 286 | #define SCTP_PEER_ADDR_CHANGE SCTP_PEER_ADDR_CHANGE |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 287 | SCTP_SEND_FAILED, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 288 | #define SCTP_SEND_FAILED SCTP_SEND_FAILED |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 289 | SCTP_REMOTE_ERROR, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 290 | #define SCTP_REMOTE_ERROR SCTP_REMOTE_ERROR |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 291 | SCTP_SHUTDOWN_EVENT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 292 | #define SCTP_SHUTDOWN_EVENT SCTP_SHUTDOWN_EVENT |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 293 | SCTP_PARTIAL_DELIVERY_EVENT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 294 | #define SCTP_PARTIAL_DELIVERY_EVENT SCTP_PARTIAL_DELIVERY_EVENT |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 295 | SCTP_ADAPTATION_INDICATION, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 296 | #define SCTP_ADAPTATION_INDICATION SCTP_ADAPTATION_INDICATION |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 297 | SCTP_AUTHENTICATION_EVENT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 298 | #define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 299 | SCTP_SENDER_DRY_EVENT, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 300 | #define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 301 | }; |
| 302 | typedef enum sctp_sn_error { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 303 | SCTP_FAILED_THRESHOLD, |
| 304 | SCTP_RECEIVED_SACK, |
| 305 | SCTP_HEARTBEAT_SUCCESS, |
| 306 | SCTP_RESPONSE_TO_USER_REQ, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 307 | SCTP_INTERNAL_ERROR, |
| 308 | SCTP_SHUTDOWN_GUARD_EXPIRES, |
| 309 | SCTP_PEER_FAULTY, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 310 | } sctp_sn_error_t; |
| 311 | struct sctp_rtoinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 312 | sctp_assoc_t srto_assoc_id; |
| 313 | __u32 srto_initial; |
| 314 | __u32 srto_max; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 315 | __u32 srto_min; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 316 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 317 | struct sctp_assocparams { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 318 | sctp_assoc_t sasoc_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 319 | __u16 sasoc_asocmaxrxt; |
| 320 | __u16 sasoc_number_peer_destinations; |
| 321 | __u32 sasoc_peer_rwnd; |
| 322 | __u32 sasoc_local_rwnd; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 323 | __u32 sasoc_cookie_life; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 324 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 325 | struct sctp_setpeerprim { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 326 | sctp_assoc_t sspp_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 327 | struct sockaddr_storage sspp_addr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 328 | } __attribute__((packed, aligned(4))); |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 329 | struct sctp_prim { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 330 | sctp_assoc_t ssp_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 331 | struct sockaddr_storage ssp_addr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 332 | } __attribute__((packed, aligned(4))); |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 333 | #define sctp_setprim sctp_prim |
| 334 | struct sctp_setadaptation { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 335 | __u32 ssb_adaptation_ind; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 336 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 337 | enum sctp_spp_flags { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 338 | SPP_HB_ENABLE = 1 << 0, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 339 | SPP_HB_DISABLE = 1 << 1, |
| 340 | SPP_HB = SPP_HB_ENABLE | SPP_HB_DISABLE, |
| 341 | SPP_HB_DEMAND = 1 << 2, |
| 342 | SPP_PMTUD_ENABLE = 1 << 3, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 343 | SPP_PMTUD_DISABLE = 1 << 4, |
| 344 | SPP_PMTUD = SPP_PMTUD_ENABLE | SPP_PMTUD_DISABLE, |
| 345 | SPP_SACKDELAY_ENABLE = 1 << 5, |
| 346 | SPP_SACKDELAY_DISABLE = 1 << 6, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 347 | SPP_SACKDELAY = SPP_SACKDELAY_ENABLE | SPP_SACKDELAY_DISABLE, |
| 348 | SPP_HB_TIME_IS_ZERO = 1 << 7, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 349 | }; |
| 350 | struct sctp_paddrparams { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 351 | sctp_assoc_t spp_assoc_id; |
| 352 | struct sockaddr_storage spp_address; |
| 353 | __u32 spp_hbinterval; |
| 354 | __u16 spp_pathmaxrxt; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 355 | __u32 spp_pathmtu; |
| 356 | __u32 spp_sackdelay; |
| 357 | __u32 spp_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 358 | } __attribute__((packed, aligned(4))); |
| 359 | struct sctp_authchunk { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 360 | __u8 sauth_chunk; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 361 | }; |
| 362 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 363 | SCTP_AUTH_HMAC_ID_SHA1 = 1, |
| 364 | SCTP_AUTH_HMAC_ID_SHA256 = 3, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 365 | }; |
| 366 | struct sctp_hmacalgo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 367 | __u32 shmac_num_idents; |
| 368 | __u16 shmac_idents[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 369 | }; |
| 370 | #define shmac_number_of_idents shmac_num_idents |
| 371 | struct sctp_authkey { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 372 | sctp_assoc_t sca_assoc_id; |
| 373 | __u16 sca_keynumber; |
| 374 | __u16 sca_keylength; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 375 | __u8 sca_key[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 376 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 377 | struct sctp_authkeyid { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 378 | sctp_assoc_t scact_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 379 | __u16 scact_keynumber; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 380 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 381 | struct sctp_sack_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 382 | sctp_assoc_t sack_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 383 | uint32_t sack_delay; |
| 384 | uint32_t sack_freq; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 385 | }; |
| 386 | struct sctp_assoc_value { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 387 | sctp_assoc_t assoc_id; |
| 388 | uint32_t assoc_value; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 389 | }; |
| 390 | struct sctp_paddrinfo { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 391 | sctp_assoc_t spinfo_assoc_id; |
| 392 | struct sockaddr_storage spinfo_address; |
| 393 | __s32 spinfo_state; |
| 394 | __u32 spinfo_cwnd; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 395 | __u32 spinfo_srtt; |
| 396 | __u32 spinfo_rto; |
| 397 | __u32 spinfo_mtu; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 398 | } __attribute__((packed, aligned(4))); |
| 399 | enum sctp_spinfo_state { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 400 | SCTP_INACTIVE, |
| 401 | SCTP_PF, |
| 402 | SCTP_ACTIVE, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 403 | SCTP_UNCONFIRMED, |
| 404 | SCTP_UNKNOWN = 0xffff |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 405 | }; |
| 406 | struct sctp_status { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 407 | sctp_assoc_t sstat_assoc_id; |
| 408 | __s32 sstat_state; |
| 409 | __u32 sstat_rwnd; |
| 410 | __u16 sstat_unackdata; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 411 | __u16 sstat_penddata; |
| 412 | __u16 sstat_instrms; |
| 413 | __u16 sstat_outstrms; |
| 414 | __u32 sstat_fragmentation_point; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 415 | struct sctp_paddrinfo sstat_primary; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 416 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 417 | struct sctp_authchunks { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 418 | sctp_assoc_t gauth_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 419 | __u32 gauth_number_of_chunks; |
| 420 | uint8_t gauth_chunks[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 421 | }; |
| 422 | #define guth_number_of_chunks gauth_number_of_chunks |
| 423 | enum sctp_sstat_state { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 424 | SCTP_EMPTY = 0, |
| 425 | SCTP_CLOSED = 1, |
| 426 | SCTP_COOKIE_WAIT = 2, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 427 | SCTP_COOKIE_ECHOED = 3, |
| 428 | SCTP_ESTABLISHED = 4, |
| 429 | SCTP_SHUTDOWN_PENDING = 5, |
| 430 | SCTP_SHUTDOWN_SENT = 6, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 431 | SCTP_SHUTDOWN_RECEIVED = 7, |
| 432 | SCTP_SHUTDOWN_ACK_SENT = 8, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 433 | }; |
| 434 | struct sctp_assoc_ids { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 435 | __u32 gaids_number_of_ids; |
| 436 | sctp_assoc_t gaids_assoc_id[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 437 | }; |
| 438 | struct sctp_getaddrs_old { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 439 | sctp_assoc_t assoc_id; |
| 440 | int addr_num; |
| 441 | struct sockaddr * addrs; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 442 | }; |
| 443 | struct sctp_getaddrs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 444 | sctp_assoc_t assoc_id; |
| 445 | __u32 addr_num; |
| 446 | __u8 addrs[0]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 447 | }; |
| 448 | struct sctp_assoc_stats { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 449 | sctp_assoc_t sas_assoc_id; |
| 450 | struct sockaddr_storage sas_obs_rto_ipaddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 451 | __u64 sas_maxrto; |
| 452 | __u64 sas_isacks; |
| 453 | __u64 sas_osacks; |
| 454 | __u64 sas_opackets; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 455 | __u64 sas_ipackets; |
| 456 | __u64 sas_rtxchunks; |
| 457 | __u64 sas_outofseqtsns; |
| 458 | __u64 sas_idupchunks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 459 | __u64 sas_gapcnt; |
| 460 | __u64 sas_ouodchunks; |
| 461 | __u64 sas_iuodchunks; |
| 462 | __u64 sas_oodchunks; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 463 | __u64 sas_iodchunks; |
| 464 | __u64 sas_octrlchunks; |
| 465 | __u64 sas_ictrlchunks; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 466 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 467 | #define SCTP_BINDX_ADD_ADDR 0x01 |
| 468 | #define SCTP_BINDX_REM_ADDR 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 469 | typedef struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 470 | sctp_assoc_t associd; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 471 | int sd; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 472 | } sctp_peeloff_arg_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 473 | struct sctp_paddrthlds { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 474 | sctp_assoc_t spt_assoc_id; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 475 | struct sockaddr_storage spt_address; |
| 476 | __u16 spt_pathmaxrxt; |
| 477 | __u16 spt_pathpfthld; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 478 | }; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 479 | struct sctp_prstatus { |
| 480 | sctp_assoc_t sprstat_assoc_id; |
| 481 | __u16 sprstat_sid; |
| 482 | __u16 sprstat_policy; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 483 | __u64 sprstat_abandoned_unsent; |
| 484 | __u64 sprstat_abandoned_sent; |
| 485 | }; |
| 486 | struct sctp_default_prinfo { |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 487 | sctp_assoc_t pr_assoc_id; |
| 488 | __u32 pr_value; |
| 489 | __u16 pr_policy; |
| 490 | }; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 491 | struct sctp_info { |
| 492 | __u32 sctpi_tag; |
| 493 | __u32 sctpi_state; |
| 494 | __u32 sctpi_rwnd; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 495 | __u16 sctpi_unackdata; |
| 496 | __u16 sctpi_penddata; |
| 497 | __u16 sctpi_instrms; |
| 498 | __u16 sctpi_outstrms; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 499 | __u32 sctpi_fragmentation_point; |
| 500 | __u32 sctpi_inqueue; |
| 501 | __u32 sctpi_outqueue; |
| 502 | __u32 sctpi_overall_error; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 503 | __u32 sctpi_max_burst; |
| 504 | __u32 sctpi_maxseg; |
| 505 | __u32 sctpi_peer_rwnd; |
| 506 | __u32 sctpi_peer_tag; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 507 | __u8 sctpi_peer_capable; |
| 508 | __u8 sctpi_peer_sack; |
| 509 | __u16 __reserved1; |
| 510 | __u64 sctpi_isacks; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 511 | __u64 sctpi_osacks; |
| 512 | __u64 sctpi_opackets; |
| 513 | __u64 sctpi_ipackets; |
| 514 | __u64 sctpi_rtxchunks; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 515 | __u64 sctpi_outofseqtsns; |
| 516 | __u64 sctpi_idupchunks; |
| 517 | __u64 sctpi_gapcnt; |
| 518 | __u64 sctpi_ouodchunks; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 519 | __u64 sctpi_iuodchunks; |
| 520 | __u64 sctpi_oodchunks; |
| 521 | __u64 sctpi_iodchunks; |
| 522 | __u64 sctpi_octrlchunks; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 523 | __u64 sctpi_ictrlchunks; |
| 524 | struct sockaddr_storage sctpi_p_address; |
| 525 | __s32 sctpi_p_state; |
| 526 | __u32 sctpi_p_cwnd; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 527 | __u32 sctpi_p_srtt; |
| 528 | __u32 sctpi_p_rto; |
| 529 | __u32 sctpi_p_hbinterval; |
| 530 | __u32 sctpi_p_pathmaxrxt; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 531 | __u32 sctpi_p_sackdelay; |
| 532 | __u32 sctpi_p_sackfreq; |
| 533 | __u32 sctpi_p_ssthresh; |
| 534 | __u32 sctpi_p_partial_bytes_acked; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 535 | __u32 sctpi_p_flight_size; |
| 536 | __u16 sctpi_p_error; |
| 537 | __u16 __reserved2; |
| 538 | __u32 sctpi_s_autoclose; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 539 | __u32 sctpi_s_adaptation_ind; |
| 540 | __u32 sctpi_s_pd_point; |
| 541 | __u8 sctpi_s_nodelay; |
| 542 | __u8 sctpi_s_disable_fragments; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 543 | __u8 sctpi_s_v4mapped; |
| 544 | __u8 sctpi_s_frag_interleave; |
| 545 | __u32 sctpi_s_type; |
| 546 | __u32 __reserved3; |
Christopher Ferris | 49f525c | 2016-12-12 14:55:36 -0800 | [diff] [blame] | 547 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 548 | #endif |