diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/sctp.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h index 266022a2be4a..a387761f7e02 100644 --- a/include/uapi/linux/sctp.h +++ b/include/uapi/linux/sctp.h | |||
| @@ -154,6 +154,22 @@ struct sctp_sndrcvinfo { | |||
| 154 | sctp_assoc_t sinfo_assoc_id; | 154 | sctp_assoc_t sinfo_assoc_id; |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | /* 5.3.4 SCTP Send Information Structure (SCTP_SNDINFO) | ||
| 158 | * | ||
| 159 | * This cmsghdr structure specifies SCTP options for sendmsg(). | ||
| 160 | * | ||
| 161 | * cmsg_level cmsg_type cmsg_data[] | ||
| 162 | * ------------ ------------ ------------------- | ||
| 163 | * IPPROTO_SCTP SCTP_SNDINFO struct sctp_sndinfo | ||
| 164 | */ | ||
| 165 | struct sctp_sndinfo { | ||
| 166 | __u16 snd_sid; | ||
| 167 | __u16 snd_flags; | ||
| 168 | __u32 snd_ppid; | ||
| 169 | __u32 snd_context; | ||
| 170 | sctp_assoc_t snd_assoc_id; | ||
| 171 | }; | ||
| 172 | |||
| 157 | /* | 173 | /* |
| 158 | * sinfo_flags: 16 bits (unsigned integer) | 174 | * sinfo_flags: 16 bits (unsigned integer) |
| 159 | * | 175 | * |
| @@ -177,10 +193,12 @@ typedef union { | |||
| 177 | 193 | ||
| 178 | /* These are cmsg_types. */ | 194 | /* These are cmsg_types. */ |
| 179 | typedef enum sctp_cmsg_type { | 195 | typedef enum sctp_cmsg_type { |
| 180 | SCTP_INIT, /* 5.2.1 SCTP Initiation Structure */ | 196 | SCTP_INIT, /* 5.2.1 SCTP Initiation Structure */ |
| 181 | #define SCTP_INIT SCTP_INIT | 197 | #define SCTP_INIT SCTP_INIT |
| 182 | SCTP_SNDRCV, /* 5.2.2 SCTP Header Information Structure */ | 198 | SCTP_SNDRCV, /* 5.2.2 SCTP Header Information Structure */ |
| 183 | #define SCTP_SNDRCV SCTP_SNDRCV | 199 | #define SCTP_SNDRCV SCTP_SNDRCV |
| 200 | SCTP_SNDINFO, /* 5.3.4 SCTP Send Information Structure */ | ||
| 201 | #define SCTP_SNDINFO SCTP_SNDINFO | ||
| 184 | } sctp_cmsg_t; | 202 | } sctp_cmsg_t; |
| 185 | 203 | ||
| 186 | /* | 204 | /* |
