| 1 |
.\" (C) Copyright Sridhar Samudrala IBM Corp. 2004, 2005. |
| 2 |
.\" |
| 3 |
.\" Permission is granted to distribute possibly modified copies |
| 4 |
.\" of this manual provided the header is included verbatim, |
| 5 |
.\" and in case of nontrivial modification author and date |
| 6 |
.\" of the modification is added to the header. |
| 7 |
.\" |
| 8 |
.TH SCTP 7 2005-10-25 "Linux Man Page" "Linux Programmer's Manual" |
| 9 |
.SH NAME |
| 10 |
sctp \- SCTP protocol. |
| 11 |
.SH SYNOPSIS |
| 12 |
.nf |
| 13 |
.B #include <sys/socket.h> |
| 14 |
.B #include <netinet/in.h> |
| 15 |
.B #include <netinet/sctp.h> |
| 16 |
.sp |
| 17 |
.B sctp_socket = socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); |
| 18 |
.B sctp_socket = socket(PF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); |
| 19 |
.fi |
| 20 |
.SH DESCRIPTION |
| 21 |
This is an implementation of the SCTP protocol as defined in RFC4960. It is |
| 22 |
a message oriented, reliable transport protocol with direct support for |
| 23 |
multihoming that runs on top of |
| 24 |
.BR ip (7), |
| 25 |
and supports both v4 and v6 versions. |
| 26 |
.PP |
| 27 |
Like TCP, SCTP provides reliable, connection oriented data delivery with |
| 28 |
congestion control. Unlike TCP, SCTP also provides message boundary |
| 29 |
preservation, ordered and unordered message delivery, multi-streaming and |
| 30 |
multi-homing. Detection of data corruption, loss of data and duplication of |
| 31 |
data is achieved by using checksums and sequence numbers. A selective |
| 32 |
retransmission mechanism is applied to correct loss or corruption of data. |
| 33 |
.PP |
| 34 |
This implementation supports a mapping of SCTP into sockets API as defined |
| 35 |
in the RFC6458(Sockets API extensions for SCTP). Two styles of interfaces |
| 36 |
are supported. |
| 37 |
.PP |
| 38 |
A |
| 39 |
.B one-to-many |
| 40 |
style interface with 1 to MANY relationship between socket and associations |
| 41 |
where the outbound association setup is implicit. The syntax of a one-to-many |
| 42 |
style socket() call is |
| 43 |
.PP |
| 44 |
.B sd = socket(PF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); |
| 45 |
.PP |
| 46 |
A typical server in this style uses the following socket calls in sequence |
| 47 |
to prepare an endpoint for servicing requests. |
| 48 |
.PP |
| 49 |
1. socket() |
| 50 |
2. bind() |
| 51 |
3. listen() |
| 52 |
4. recvmsg() |
| 53 |
5. sendmsg() |
| 54 |
6. close() |
| 55 |
.PP |
| 56 |
A typical client uses the following calls in sequence to setup an association |
| 57 |
with a server to request services. |
| 58 |
.PP |
| 59 |
1. socket() |
| 60 |
2. sendmsg() |
| 61 |
3. recvmsg() |
| 62 |
4. close() |
| 63 |
.PP |
| 64 |
A |
| 65 |
.B one-to-one style |
| 66 |
interface with a 1 to 1 relationship between socket and |
| 67 |
association which enables existing TCP applications to be ported to SCTP with |
| 68 |
very little effort. The syntax of a one-to-one style socket() call is |
| 69 |
.PP |
| 70 |
.B sd = socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); |
| 71 |
.PP |
| 72 |
A typical server in one-to-one style uses the following |
| 73 |
system call sequence to prepare an SCTP endpoint for servicing requests: |
| 74 |
.PP |
| 75 |
1. socket() |
| 76 |
2. bind() |
| 77 |
3. listen() |
| 78 |
4. accept() |
| 79 |
.PP |
| 80 |
The accept() call blocks until a new association is set up. It returns with a |
| 81 |
new socket descriptor. The server then uses the new socket descriptor to |
| 82 |
communicate with the client, using recv() and send() calls to get requests and |
| 83 |
send back responses. Then it calls |
| 84 |
.PP |
| 85 |
5. close() |
| 86 |
.PP |
| 87 |
to terminate the association. A typical client uses the following system call |
| 88 |
sequence to setup an association with a server to request services: |
| 89 |
.PP |
| 90 |
1. socket() |
| 91 |
2. connect() |
| 92 |
.PP |
| 93 |
After returning from connect(), the client uses send() and recv() calls to |
| 94 |
send out requests and receive responses from the server. The client calls |
| 95 |
.PP |
| 96 |
3. close() |
| 97 |
.PP |
| 98 |
to terminate this association when done. |
| 99 |
.SH "ADDRESS FORMATS" |
| 100 |
SCTP is built on top of IP (see |
| 101 |
.BR ip (7)). |
| 102 |
The address formats defined by |
| 103 |
.BR ip (7) |
| 104 |
apply to SCTP. SCTP only supports point-to-point communication; broadcasting |
| 105 |
and multicasting are not supported. |
| 106 |
.SH SYSCTLS |
| 107 |
These variables can be accessed by the |
| 108 |
.B /proc/sys/net/sctp/* |
| 109 |
files or with the |
| 110 |
.BR sysctl (2) |
| 111 |
interface. In addition, most IP sysctls also apply to SCTP. See |
| 112 |
.BR ip (7). |
| 113 |
.TP |
| 114 |
Please check kernel documentation for this, at Documentation/networking/ip-sysctl.rst. |
| 115 |
.SH "STATISTICS" |
| 116 |
These variables can be accessed by the |
| 117 |
.B /proc/net/sctp/* |
| 118 |
files. |
| 119 |
.TP |
| 120 |
.B assocs |
| 121 |
Displays the following information about the active associations. |
| 122 |
assoc ptr, sock ptr, socket style, sock state, association state, hash bucket, |
| 123 |
association id, bytes in transmit queue, bytes in receive queue, user id, |
| 124 |
inode, local port, remote port, local addresses, remote addresses, |
| 125 |
heartbeat interval, in streams, out streams, max retransmissions, init retries, |
| 126 |
shutdown retries, retransmitted chunks, sock transmit queue committed bytes, |
| 127 |
sock transmit queue bytes, and sock send and receive buffer bytes. |
| 128 |
.TP |
| 129 |
.B eps |
| 130 |
Displays the following information about the active endpoints. |
| 131 |
endpoint ptr, sock ptr, socket style, sock state, hash bucket, local port, |
| 132 |
user id, inode and local addresses. |
| 133 |
.TP |
| 134 |
.B snmp |
| 135 |
Displays the following statistics related to SCTP states, packets and chunks. |
| 136 |
.TP |
| 137 |
.TP |
| 138 |
.B SctpCurrEstab |
| 139 |
The number of associations for which the current state is either ESTABLISHED, |
| 140 |
SHUTDOWN-RECEIVED or SHUTDOWN-PENDING. |
| 141 |
.TP |
| 142 |
.B SctpActiveEstabs |
| 143 |
The number of times that associations have made a direct transition to the |
| 144 |
ESTABLISHED state from the COOKIE-ECHOED state. The upper layer initiated the |
| 145 |
association attempt. |
| 146 |
.TP |
| 147 |
.B SctpPassiveEstabs |
| 148 |
The number of times that associations have made a direct transition to the |
| 149 |
ESTABLISHED state from the CLOSED state. The remote endpoint initiated the |
| 150 |
association attempt. |
| 151 |
.TP |
| 152 |
.B SctpAborteds |
| 153 |
The number of times that associations have made a direct transition to the |
| 154 |
CLOSED state from any state using the primitive 'ABORT'. Ungraceful |
| 155 |
termination of the association. |
| 156 |
.TP |
| 157 |
.B SctpShutdowns |
| 158 |
The number of times that associations have made a direct transition to the |
| 159 |
CLOSED state from either the SHUTDOWN-SENT state or the SHUTDOWN-ACK-SENT |
| 160 |
state. Graceful termination of the association. |
| 161 |
.TP |
| 162 |
.B SctpOutOfBlues |
| 163 |
The number of out of the blue packets received by the host. An out of the blue |
| 164 |
packet is an SCTP packet correctly formed, including the proper checksum, but |
| 165 |
for which the receiver was unable to identify an appropriate association. |
| 166 |
.TP |
| 167 |
.B SctpChecksumErrors |
| 168 |
The number of SCTP packets received with an invalid checksum. |
| 169 |
.TP |
| 170 |
.B SctpOutCtrlChunks |
| 171 |
The number of SCTP control chunks sent (retransmissions are not included). |
| 172 |
Control chunks are those chunks different from DATA. |
| 173 |
.TP |
| 174 |
.B SctpOutOrderChunks |
| 175 |
The number of SCTP ordered data chunks sent (retransmissions are not included). |
| 176 |
.TP |
| 177 |
.B SctpOutUnorderChunks |
| 178 |
The number of SCTP unordered chunks(data chunks in which the U bit is set |
| 179 |
to 1) sent (retransmissions are not included). |
| 180 |
.TP |
| 181 |
.B SctpInCtrlChunks |
| 182 |
The number of SCTP control chunks received (no duplicate chunks included). |
| 183 |
.TP |
| 184 |
.B SctpInOrderChunks |
| 185 |
The number of SCTP ordered data chunks received (no duplicate chunks included). |
| 186 |
.TP |
| 187 |
.B SctpInUnorderChunks |
| 188 |
The number of SCTP unordered chunks(data chunks in which the U bit is set |
| 189 |
to 1) received (no duplicate chunks included). |
| 190 |
.TP |
| 191 |
.B SctpFragUsrMsgs |
| 192 |
The number of user messages that have to be fragmented because of the MTU. |
| 193 |
.TP |
| 194 |
.B SctpReasmUsrMsgs |
| 195 |
The number of user messages reassembled, after conversion into DATA chunks. |
| 196 |
.TP |
| 197 |
.B SctpOutSCTPPacks |
| 198 |
The number of SCTP packets sent. Retransmitted DATA chunks are included. |
| 199 |
.TP |
| 200 |
.B SctpInSCTPPacks |
| 201 |
The number of SCTP packets received. Duplicates are included. |
| 202 |
.TP |
| 203 |
.B SctpT1InitExpireds |
| 204 |
The number of timer T1 INIT expired. |
| 205 |
.TP |
| 206 |
.B SctpT1CookieExpireds |
| 207 |
The number of timer T1 COOKIE-ECHO expired. |
| 208 |
.TP |
| 209 |
.B SctpT2ShutdownExpireds |
| 210 |
The number of timer T2 SHUTDOWN expired. |
| 211 |
.TP |
| 212 |
.B SctpT3RtxExpireds |
| 213 |
The number of timer T3 RTX expired. |
| 214 |
.TP |
| 215 |
.B SctpT4RtoExpireds |
| 216 |
The number of timer T4 RTO expired. |
| 217 |
.TP |
| 218 |
.B SctpT5ShutdownGuardExpireds |
| 219 |
The number of timer T5 SHUTDOWN GUARD expired. |
| 220 |
.TP |
| 221 |
.B SctpDelaySackExpireds |
| 222 |
The number of timer DELAY_SACK expired. |
| 223 |
.TP |
| 224 |
.B SctpAutocloseExpireds |
| 225 |
The number of timer AUTOCLOSE expired. |
| 226 |
.TP |
| 227 |
.B SctpT3Retransmits |
| 228 |
The number of T3 timer retransmission. |
| 229 |
.TP |
| 230 |
.B SctpPmtudRetransmits |
| 231 |
The number of PMTUD retransmission. |
| 232 |
.TP |
| 233 |
.B SctpFastRetransmits |
| 234 |
The number of FAST retransmission. |
| 235 |
.TP |
| 236 |
.B SctpInPktSoftirq |
| 237 |
The number of SCTP packets received in Softirq. |
| 238 |
.TP |
| 239 |
.B SctpInPktBacklog |
| 240 |
The number of SCTP packets received in Backlog. |
| 241 |
.TP |
| 242 |
.B SctpInPktDiscards |
| 243 |
The number of SCTP packets discarded in receiving. |
| 244 |
.TP |
| 245 |
.B SctpInDataChunkDiscards |
| 246 |
The number of SCTP data chunks discarded in receiving. |
| 247 |
.SH CONTROL MSGS |
| 248 |
The ancillary data is carried in msg_control field of struct msghdr, which is |
| 249 |
used in |
| 250 |
.B sendmsg(2) |
| 251 |
and |
| 252 |
.B recvmsg(2) |
| 253 |
call. The SCTP stack uses the ancillary data to communicate the attributes, |
| 254 |
such as SCTP_RCVINFO, of the message stored in msg_iov to the socket endpoint. |
| 255 |
Each ancillary data item is preceded by a struct cmsghdr, see |
| 256 |
.B cmsg(3). |
| 257 |
The different cmsg types for SCTP are listed below, and all these related macros |
| 258 |
and structures are defined in /usr/include/netinet/sctp.h. |
| 259 |
.TP |
| 260 |
.B SCTP_INIT |
| 261 |
This cmsg provides information for initializing new SCTP associations for sendmsg() |
| 262 |
with struct sctp_initmsg, which is the same as SCTP_INITMSG socket option's data |
| 263 |
structure. |
| 264 |
.TP |
| 265 |
.B SCTP_SNDRCV |
| 266 |
This cmsg specifies SCTP options for sendmsg() and describes SCTP header information |
| 267 |
about a received message through recvmsg() with struct sctp_sndrcvinfo. It mixes the |
| 268 |
send and receive path, and SCTP_SNDINFO and SCTP_RCVINFO split this information, so |
| 269 |
these structures should be used, when possible, since SCTP_SNDRCV is deprecated. |
| 270 |
.B sctp_sendmsg(3) |
| 271 |
and |
| 272 |
.B sctp_send(3) |
| 273 |
provide a simple way to use this cmsg. |
| 274 |
|
| 275 |
Note that an application must use the SCTP_RECVRCVINFO socket option to enable the |
| 276 |
delivery of this information. |
| 277 |
.TP |
| 278 |
.B SCTP_EXTRCV |
| 279 |
This cmsg specifies SCTP options for SCTP header information about a received message |
| 280 |
via recvmsg() with struct sctp_extrcvinfo, and this structure is an extended version |
| 281 |
of SCTP_SNDRCV. Note that data in the next message is not valid unless the current |
| 282 |
message is completely read, i.e., unless the MSG_EOR is set. SCTP_NXTINFO should be |
| 283 |
used when possible, since SCTP_EXTRCV is considered deprecated. |
| 284 |
.B sctp_recvmsg(3) |
| 285 |
provides a simple way to use this cmsg. |
| 286 |
|
| 287 |
Note that an application must use the SCTP_RECVNXTINFO socket option to enable the |
| 288 |
delivery of this information. |
| 289 |
.TP |
| 290 |
.B SCTP_RCVINFO, SCTP_NXTINFO |
| 291 |
These cmsgs describe SCTP receive information about a received message through |
| 292 |
recvmsg() with struct sctp_rcvinfo, and SCTP receive information of the next |
| 293 |
message that will be delivered through recvmsg() if this information is already |
| 294 |
available when delivering the current message with struct sctp_nxtinfo. |
| 295 |
.B sctp_recvv(3) |
| 296 |
provides a simple way to use these cmsgs. |
| 297 |
|
| 298 |
Note that an application must use the SCTP_RECVRCVINFO and SCTP_RECVNXTINFO socket |
| 299 |
options accordingly to enable the delivery of this information. |
| 300 |
.TP |
| 301 |
.B SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, SCTP_DSTADDRV6 |
| 302 |
These cmsgs specifie a couple of SCTP options for sendmsg() for SEND, PRSCTP, AUTH |
| 303 |
and DSTADDR information with struct sctp_sndinfo, sctp_prinfo, sctp_authinfo and |
| 304 |
in(6)_addr accordingly. |
| 305 |
.BR sctp_sendv(3) |
| 306 |
provides a simple way to use these cmsgs. |
| 307 |
.SH EVENTS and NOTIFICATIONS |
| 308 |
An SCTP application may need to understand and process events and errors |
| 309 |
that happen on the SCTP stack. These events include network status changes, |
| 310 |
association startups, remote operational errors, and undeliverable messages. |
| 311 |
When a notification arrives, recvmsg() returns the notification in the |
| 312 |
application-supplied data buffer via msg_iov, and sets MSG_NOTIFICATION in |
| 313 |
msg_flags. See socket option SCTP_EVENT for the event enabling. The different |
| 314 |
events are listed below, and all these related macros and structures are |
| 315 |
defined in /usr/include/netinet/sctp.h. |
| 316 |
.TP |
| 317 |
.B SCTP_ASSOC_CHANGE |
| 318 |
Communication notifications inform the application that an SCTP |
| 319 |
association has either begun or ended. The notification format |
| 320 |
is struct sctp_assoc_change. |
| 321 |
.TP |
| 322 |
.B SCTP_PEER_ADDR_CHANGE |
| 323 |
When a destination address of a multi-homed peer encounters a state |
| 324 |
change, a peer address change event is sent. The notification format |
| 325 |
is struct sctp_paddr_change. |
| 326 |
.TP |
| 327 |
.B SCTP_REMOTE_ERROR |
| 328 |
A remote peer may send an Operation Error message to its peer. This |
| 329 |
message indicates a variety of error conditions on an association. |
| 330 |
The notification format is struct sctp_remote_error. |
| 331 |
.TP |
| 332 |
.B SCTP_SEND_FAILED |
| 333 |
If SCTP cannot deliver a message, it can return back the message as a |
| 334 |
notification if the SCTP_SEND_FAILED event is enabled. The notification |
| 335 |
format is struct sctp_send_failed. Please note that this notification |
| 336 |
is deprecated. Use SCTP_SEND_FAILED_EVENT instead. |
| 337 |
.TP |
| 338 |
.B SCTP_SHUTDOWN_EVENT |
| 339 |
When a peer sends a SHUTDOWN, SCTP delivers this notification to inform |
| 340 |
the application that it should cease sending data. The notification |
| 341 |
format is struct sctp_shutdown_event. |
| 342 |
.TP |
| 343 |
.B SCTP_ADAPTATION_INDICATION |
| 344 |
When a peer sends an Adaptation Layer Indication parameter, SCTP delivers |
| 345 |
this notification to inform the application about the peer's adaptation |
| 346 |
layer indication. The notification format is struct sctp_adaptation_event. |
| 347 |
.TP |
| 348 |
.B SCTP_PARTIAL_DELIVERY_EVENT |
| 349 |
When a receiver is engaged in a partial delivery of a message, this |
| 350 |
notification will be used to indicate various events. The notification |
| 351 |
format is struct sctp_pdapi_event. |
| 352 |
.TP |
| 353 |
.B SCTP_AUTHENTICATION_EVENT |
| 354 |
This is used to report different events relating to the use of the |
| 355 |
extension to authenticate SCTP messages. The notification format is |
| 356 |
struct sctp_authkey_event. |
| 357 |
.TP |
| 358 |
.B SCTP_SENDER_DRY_EVENT |
| 359 |
When the SCTP stack has no more user data to send or retransmit, this |
| 360 |
notification is given to the user. Also, at the time when a user app |
| 361 |
subscribes to this event, if there is no data to be sent or retransmit, |
| 362 |
the stack will immediately send up this notification. The notification |
| 363 |
format is struct sctp_sender_dry_event. |
| 364 |
.TP |
| 365 |
.B SCTP_SEND_FAILED_EVENT |
| 366 |
If SCTP cannot deliver a message, it can return back the message as a |
| 367 |
notification if the SCTP_SEND_FAILED_EVENT event is enabled. The |
| 368 |
notification format is struct sctp_send_failed_event. |
| 369 |
.SH "SOCKET OPTIONS" |
| 370 |
To set or get a SCTP socket option, call |
| 371 |
.BR getsockopt (2) |
| 372 |
to read or |
| 373 |
.BR setsockopt (2) |
| 374 |
to write the option with the option level argument set to |
| 375 |
.BR SOL_SCTP. |
| 376 |
Note that all these macros and structures described for parameters are defined |
| 377 |
in /usr/include/netinet/sctp.h, and for one-to-one style sockets a specified |
| 378 |
assoc_id works the same as SCTP_FUTURE_ASSOC. |
| 379 |
.TP |
| 380 |
.BR SCTP_RTOINFO. |
| 381 |
This option is used to get or set the protocol parameters used to |
| 382 |
initialize and bound retransmission timeout(RTO). |
| 383 |
|
| 384 |
The parameter type is struct sctp_rtoinfo, for reading and writing. |
| 385 |
srto_assoc_id is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 386 |
|
| 387 |
Default: srto_max=sysctl_net.sctp.rto_max, srto_min=sysctl_net.sctp.rto_min, |
| 388 |
srto_initial=sysctl_net.sctp.rto_initial. |
| 389 |
.TP |
| 390 |
.B SCTP_ASSOCINFO |
| 391 |
This option is used to both examine and set various association and endpoint |
| 392 |
parameters. |
| 393 |
|
| 394 |
The parameter type is struct sctp_assocparams, for reading and writing. |
| 395 |
sasoc_assoc_id is a specified assoc_id or SCTP_FUTURE_ASSOC. Note that |
| 396 |
some fields of this structure are for reading only: |
| 397 |
|
| 398 |
struct sctp_assocparams { |
| 399 |
sctp_assoc_t sasoc_assoc_id; |
| 400 |
__u16 sasoc_asocmaxrxt; (RW) |
| 401 |
__u16 sasoc_number_peer_destinations; (R) |
| 402 |
__u32 sasoc_peer_rwnd; (R) |
| 403 |
__u32 sasoc_local_rwnd; (R) |
| 404 |
__u32 sasoc_cookie_life; (RW) |
| 405 |
}; |
| 406 |
|
| 407 |
Default: sasoc_asocmaxrxt=sysctl_net.sctp.association_max_retrans, |
| 408 |
sasoc_cookie_life=sysctl_net.sctp.valid_cookie_life. |
| 409 |
.TP |
| 410 |
.B SCTP_INITMSG |
| 411 |
This option is used to get or set the protocol parameters for the default |
| 412 |
association initialization. |
| 413 |
|
| 414 |
The parameter type is struct sctp_initmsg, for reading and writing. |
| 415 |
|
| 416 |
Default: sinit_num_ostreams=10, sinit_max_instreams=10, |
| 417 |
sinit_max_attempts=sysctl_net.sctp.max_init_retransmits, |
| 418 |
sinit_max_init_timeo=sysctl_net.sctp.rto_max. |
| 419 |
.TP |
| 420 |
.B SCTP_NODELAY |
| 421 |
Turn on/off any Nagle-like algorithm. This means that packets are generally |
| 422 |
sent as soon as possible and no unnecessary delays are introduced, at the |
| 423 |
cost of more packets in the network. |
| 424 |
|
| 425 |
The parameter type is int boolean, for reading and writing. |
| 426 |
|
| 427 |
Default: 0. |
| 428 |
.TP |
| 429 |
.B SCTP_AUTOCLOSE |
| 430 |
This socket option is applicable to the one-to-many style socket only. |
| 431 |
When set it will cause associations that are idle for more than the |
| 432 |
specified number of seconds to automatically close. An association |
| 433 |
being idle is defined an association that has NOT sent or received |
| 434 |
user data within a period. |
| 435 |
|
| 436 |
The parameter type is int(seconds), for reading and writing. 0 indicates |
| 437 |
that no automatic close of any associations should be performed. |
| 438 |
|
| 439 |
Default: sysctl_net.sctp.max_autoclose. |
| 440 |
.TP |
| 441 |
.B SCTP_SET_PEER_PRIMARY_ADDR |
| 442 |
Requests that the peer mark the enclosed address as the association |
| 443 |
primary. The enclosed address must be one of the association's |
| 444 |
locally bound addresses. |
| 445 |
|
| 446 |
The parameter type is struct sctp_setpeerprim, for writing only. |
| 447 |
sspp_assoc_id is a specified assoc_id. |
| 448 |
|
| 449 |
Default: the 1st local address added. |
| 450 |
Require: SCTP_ASCONF_SUPPORTED. |
| 451 |
.TP |
| 452 |
.B SCTP_PRIMARY_ADDR |
| 453 |
Requests that the local SCTP stack use the enclosed peer address as |
| 454 |
the association primary. The enclosed address must be one of the |
| 455 |
association peer's addresses. |
| 456 |
|
| 457 |
The parameter type is struct sctp_prim, for writing only. ssp_assoc_id |
| 458 |
is a specified assoc_id. |
| 459 |
|
| 460 |
Default: the 1st peer address added. |
| 461 |
Require: SCTP_ASCONF_SUPPORTED. |
| 462 |
.TP |
| 463 |
.B SCTP_DISABLE_FRAGMENTS |
| 464 |
If enabled no SCTP message fragmentation will be performed. Instead if a |
| 465 |
message being sent exceeds the current PMTU size, the message will NOT |
| 466 |
be sent and an error will be indicated to the user. |
| 467 |
|
| 468 |
The parameter type is int boolean, for reading and writing. |
| 469 |
|
| 470 |
Default: 0. |
| 471 |
.TP |
| 472 |
.B SCTP_PEER_ADDR_PARAMS |
| 473 |
Using this option, applications can enable or disable heartbeats for any peer |
| 474 |
address of an association, modify an address's heartbeat interval, force a |
| 475 |
heartbeat to be sent immediately, and adjust the address's maximum number of |
| 476 |
retransmissions sent before an address is considered unreachable. |
| 477 |
|
| 478 |
The parameter type is struct sctp_paddrparams, for reading and writing. |
| 479 |
spp_address is a specified transport address or 0, spp_assoc_id is |
| 480 |
a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 481 |
|
| 482 |
Default: hbinterval=sysctl_net.sctp.hb_interval, |
| 483 |
pathmaxrxt=sysctl_net.sctp.path_max_retrans, |
| 484 |
pathmtu=dev/route's, sackdelay=sysctl_net.sctp.sack_timeout, |
| 485 |
param_flags=HB_ENABLE|PMTUD_ENABLE|SACKDELAY_ENABLE, flowlabel=0, dscp=0. |
| 486 |
.TP |
| 487 |
.B SCTP_DEFAULT_SEND_PARAM |
| 488 |
Applications that wish to use the sendto() system call may wish to specify |
| 489 |
a default set of parameters that would normally be supplied through the |
| 490 |
inclusion of ancillary data. This option has been obsoleted by |
| 491 |
SCTP_DEFAULT_SNDINFO. |
| 492 |
|
| 493 |
The parameter type is struct sctp_sndrcvinfo. For reading, sinfo_assoc_id is |
| 494 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, sinfo_assoc_id is a |
| 495 |
specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 496 |
|
| 497 |
Default: default_stream=0, default_flags=0, default_ppid=0, default_context=0, |
| 498 |
default_timetolive=0. |
| 499 |
.TP |
| 500 |
.B SCTP_EVENTS |
| 501 |
This socket option is used to specify various notifications and ancillary data |
| 502 |
the user wishes to receive. This option has been obsoleted by SCTP_EVENT. |
| 503 |
|
| 504 |
The parameter type is struct sctp_event_subscribe, for reading and writing. |
| 505 |
|
| 506 |
Default: 0. |
| 507 |
.TP |
| 508 |
.B SCTP_I_WANT_MAPPED_V4_ADDR |
| 509 |
This socket option is used to turn on or off mapped V4 addresses. If this |
| 510 |
option is turned on and the socket is type PF_INET6, then IPv4 addresses |
| 511 |
will be mapped to V6 representation. If this option is turned off, then |
| 512 |
no mapping will be done of V4 addresses and a user will receive both |
| 513 |
PF_INET6 and PF_INET type addresses on the socket. |
| 514 |
|
| 515 |
The parameter type is int boolean, for reading and writing. |
| 516 |
|
| 517 |
Default: 1. |
| 518 |
.TP |
| 519 |
.B SCTP_MAXSEG |
| 520 |
This socket option specifies the maximum size to put in any outgoing |
| 521 |
SCTP DATA chunk. If a message is larger than this size it will be |
| 522 |
fragmented by SCTP into the specified size. Note that the underlying |
| 523 |
SCTP implementation may fragment into smaller sized chunks when the |
| 524 |
PMTU of the underlying association is smaller than the value set by |
| 525 |
the user. 0 indicates the user is NOT limiting fragmentation and only |
| 526 |
the PMTU will effect SCTP's choice of DATA chunk size. |
| 527 |
|
| 528 |
The parameter type is struct sctp_assoc_value, for reading and writing. |
| 529 |
assoc_id is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 530 |
|
| 531 |
Default: 0(no limit). |
| 532 |
.TP |
| 533 |
.B SCTP_STATUS |
| 534 |
Applications can retrieve current status information about an association, |
| 535 |
including association state, peer receiver window size, number of unacked |
| 536 |
data chunks, and number of data chunks pending receipt. |
| 537 |
|
| 538 |
The parameter type is struct sctp_status, for reading only. sstat_assoc_id |
| 539 |
is a specified assoc_id. |
| 540 |
.TP |
| 541 |
.B SCTP_GET_PEER_ADDR_INFO |
| 542 |
Applications can retrieve information about a specific peer address of |
| 543 |
an association, including its reachability state, congestion window, |
| 544 |
and retransmission timer values. |
| 545 |
|
| 546 |
The parameter type is struct sctp_paddrinfo, for reading only. spinfo_address |
| 547 |
is a specified transport address, sas_assoc_id is a specified assoc_id |
| 548 |
or SCTP_FUTURE_ASSOC. |
| 549 |
.TP |
| 550 |
.B SCTP_GET_ASSOC_STATS |
| 551 |
Applications can retrieve current statistics about an association, including |
| 552 |
SACKs sent and received, SCTP packets sent and received. |
| 553 |
|
| 554 |
The parameter type is struct sctp_assoc_stats, for reading only. |
| 555 |
sas_assoc_id is a specified assoc_id. |
| 556 |
.TP |
| 557 |
.B SCTP_DELAYED_ACK, SCTP_DELAYED_ACK_TIME, SCTP_DELAYED_SACK |
| 558 |
These options will affect the way delayed SACKs are performed. They allow |
| 559 |
the application to get or set the delayed SACK time, in milliseconds, and |
| 560 |
also allow changing the delayed SACK frequency. Changing the frequency |
| 561 |
to 1 disables the delayed SACK algorithm. Note that if sack_delay or |
| 562 |
sack_freq is 0 when setting this option, the current values will remain |
| 563 |
unchanged. |
| 564 |
|
| 565 |
The parameter type is struct sctp_sack_info. For reading, sack_assoc_id is |
| 566 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, sack_assoc_id is a |
| 567 |
specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 568 |
|
| 569 |
Default: sackdelay=sysctl_net.sctp.sack_timeout,sackfreq=2. |
| 570 |
.TP |
| 571 |
.B SCTP_CONTEXT |
| 572 |
This option allows the setting, on an association basis, of a default |
| 573 |
context that will be received on reading messages from the peer. |
| 574 |
This is especially helpful for an application when using one-to-many |
| 575 |
style sockets to keep some reference to an internal state machine that |
| 576 |
is processing messages on the association. Note that the setting of |
| 577 |
this value only affects received messages from the peer and does not |
| 578 |
affect the value that is saved with outbound messages. |
| 579 |
|
| 580 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 581 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 582 |
is a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 583 |
|
| 584 |
Default: 0. |
| 585 |
.TP |
| 586 |
.B SCTP_FRAGMENT_INTERLEAVE |
| 587 |
Fragmented interleave controls how the presentation of messages |
| 588 |
occurs for the message receiver. There are three levels of fragment |
| 589 |
interleave defined: level 0: SCTP_FRAGMENT_INTERLEAVE = 0; level 1: |
| 590 |
SCTP_FRAGMENT_INTERLEAVE = 1; level 2: SCTP_FRAGMENT_INTERLEAVE = 1 |
| 591 |
& SCTP_INTERLEAVING_SUPPORTED = 1. |
| 592 |
|
| 593 |
The parameter type is int boolean, for reading and writing. |
| 594 |
|
| 595 |
Default: 0. |
| 596 |
.TP |
| 597 |
.B SCTP_PARTIAL_DELIVERY_POINT |
| 598 |
This option will set or get the SCTP partial delivery point. This |
| 599 |
point is the size of a message where the partial delivery API will be |
| 600 |
invoked to help free up rwnd space for the peer. Setting this to a |
| 601 |
lower value will cause partial deliveries to happen more often. This |
| 602 |
option expects an integer that sets or gets the partial delivery |
| 603 |
point in bytes. Note also that the call will fail if the user |
| 604 |
attempts to set this value larger than the socket receive buffer |
| 605 |
size. Note that any single message having a length smaller than or equal |
| 606 |
to the SCTP partial delivery point will be delivered in a single read |
| 607 |
call as long as the user-provided buffer is large enough to hold the |
| 608 |
message. |
| 609 |
|
| 610 |
The parameter type is uint32_t, for reading and writing. |
| 611 |
|
| 612 |
Default: 0. |
| 613 |
.TP |
| 614 |
.B SCTP_MAX_BURST |
| 615 |
This option will allow a user to change the maximum burst of packets |
| 616 |
that can be emitted by this association. |
| 617 |
|
| 618 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 619 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 620 |
is a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 621 |
|
| 622 |
Default: sysctl_net.sctp.max_burst. |
| 623 |
.TP |
| 624 |
.B SCTP_AUTH_CHUNK |
| 625 |
This option adds a chunk type that the user is requesting to be received |
| 626 |
only in an authenticated way, and it only affects the future associations. |
| 627 |
|
| 628 |
The parameter type is struct sauth_chunk, for writing only. |
| 629 |
|
| 630 |
Default: no chunks. |
| 631 |
Require: SCTP_AUTH_SUPPORTED. |
| 632 |
RFC: RFC4895. |
| 633 |
.TP |
| 634 |
.B SCTP_HMAC_IDENT |
| 635 |
This option gets or sets the list of Hashed Message Authentication |
| 636 |
Code (HMAC) algorithms that the local endpoint requires the peer |
| 637 |
to use. |
| 638 |
|
| 639 |
The parameter type is struct sctp_hmacalgo, for reading and writing. |
| 640 |
shmac_idents can include SCTP_AUTH_HMAC_ID_{SHA1|SHA256}. |
| 641 |
|
| 642 |
Default: SCTP_AUTH_HMAC_ID_SHA1. |
| 643 |
Require: SCTP_AUTH_SUPPORTED. |
| 644 |
.TP |
| 645 |
.B SCTP_AUTH_KEY |
| 646 |
This option will set a shared secret key that is used to build an |
| 647 |
association shared key. |
| 648 |
|
| 649 |
The parameter type is struct sctp_authkey, for writing only. sca_assoc_id |
| 650 |
is a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 651 |
|
| 652 |
Default: null_key. |
| 653 |
Require: SCTP_AUTH_SUPPORTED. |
| 654 |
.TP |
| 655 |
.B SCTP_AUTH_ACTIVE_KEY |
| 656 |
This option will get or set the active shared key to be used to build |
| 657 |
the association shared key. |
| 658 |
|
| 659 |
The parameter type is struct sctp_authkeyid, for writing only. |
| 660 |
scact_assoc_id is a specified assoc_id or |
| 661 |
SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 662 |
|
| 663 |
Default: 0. |
| 664 |
Require: SCTP_AUTH_SUPPORTED. |
| 665 |
.TP |
| 666 |
.B SCTP_AUTH_DEACTIVATE_KEY |
| 667 |
This set option indicates that the application will no longer send |
| 668 |
user messages using the indicated key identifier. |
| 669 |
|
| 670 |
The parameter type is struct sctp_authkeyid, for writing only. |
| 671 |
scact_assoc_id is a specified assoc_id or |
| 672 |
SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 673 |
|
| 674 |
Require: SCTP_AUTH_SUPPORTED. |
| 675 |
.TP |
| 676 |
.B SCTP_AUTH_DELETE_KEY |
| 677 |
This set option will delete an SCTP association's shared secret key |
| 678 |
that has been deactivated. |
| 679 |
|
| 680 |
The parameter type is struct sctp_authkeyid, for writing only. |
| 681 |
scact_assoc_id is a specified assoc_id or |
| 682 |
SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 683 |
|
| 684 |
Require: SCTP_AUTH_SUPPORTED. |
| 685 |
.TP |
| 686 |
.B SCTP_PEER_AUTH_CHUNKS |
| 687 |
This option gets a list of chunk types for a specified association |
| 688 |
that the peer requires to be received authenticated only. |
| 689 |
|
| 690 |
The parameter type is struct sctp_authchunks, for reading only. |
| 691 |
gauth_assoc_id is a specified assoc_id. |
| 692 |
|
| 693 |
Require: SCTP_AUTH_SUPPORTED. |
| 694 |
.TP |
| 695 |
.B SCTP_LOCAL_AUTH_CHUNKS |
| 696 |
This option gets a list of chunk types for a specified association that |
| 697 |
the local endpoint requires to be received authenticated only. |
| 698 |
|
| 699 |
The parameter type is struct sctp_authchunks, for reading only. |
| 700 |
gauth_assoc_id is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 701 |
|
| 702 |
Require: SCTP_AUTH_SUPPORTED. |
| 703 |
.TP |
| 704 |
.B SCTP_GET_ASSOC_NUMBER |
| 705 |
This option gets the current number of associations that are attached |
| 706 |
to a one-to-many style socket. Note that this number is only a snapshot. |
| 707 |
This means that the number of associations may have changed when the |
| 708 |
caller gets back the option result. |
| 709 |
|
| 710 |
The parameter type is uint32_t, for reading only. |
| 711 |
.TP |
| 712 |
.B SCTP_GET_ASSOC_ID_LIST |
| 713 |
This option gets the current list of SCTP association identifiers of |
| 714 |
the SCTP associations handled by a one-to-many style socket. It uses |
| 715 |
struct sctp_assoc_ids and must provide a large enough buffer to hold |
| 716 |
all association identifiers. If the buffer is too small, an error must |
| 717 |
be returned. The user can use the SCTP_GET_ASSOC_NUMBER socket option |
| 718 |
to get an idea of how large the buffer has to be. |
| 719 |
|
| 720 |
The parameter type is struct sctp_assoc_ids, for reading only. |
| 721 |
.TP |
| 722 |
.B SCTP_EXPOSE_POTENTIALLY_FAILED_STATE, SCTP_EXPOSE_PF_STATE |
| 723 |
Applications can control the exposure of the PF path state in the |
| 724 |
SCTP_PEER_ADDR_CHANGE event, and if pf_expose is not 'enabled', no |
| 725 |
notification will be sent for a transport state change to SCTP_PF. |
| 726 |
It also affects the SCTP_GET_PEER_ADDR_INFO socket option, and if |
| 727 |
pf_expose is 'disabled', users can not access the transport info via |
| 728 |
SCTP_GET_PEER_ADDR_INFO option. |
| 729 |
|
| 730 |
The parameter type is struct sctp_assoc_value, for reading and writing. |
| 731 |
assoc_id is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 732 |
|
| 733 |
Default: sysctl_net.sctp.pf_expose. |
| 734 |
.TP |
| 735 |
.B SCTP_PEER_ADDR_THLDS |
| 736 |
Applications can control the SCTP-PF behavior by getting or setting |
| 737 |
the number of consecutive timeouts before a peer address is |
| 738 |
considered PF or unreachable.. |
| 739 |
|
| 740 |
The parameter type is struct sctp_paddrthlds, for reading and writing. |
| 741 |
spt_address is a specified transport address or 0, spt_assoc_id |
| 742 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 743 |
|
| 744 |
Default: pathmaxrxt=sysctl_net.sctp.path_max_retrans, |
| 745 |
ps_retrans=sysctl_net.sctp.ps_retrans. |
| 746 |
.TP |
| 747 |
.B SCTP_PEER_ADDR_THLDS_V2 |
| 748 |
Similar to SCTP_PEER_ADDR_THLDS, but it can also be used by applications |
| 749 |
to set and get the number of timeouts before the primary path is changed |
| 750 |
automatically by the Primary Path Switchover function. |
| 751 |
|
| 752 |
The parameter type is struct sctp_paddrthlds_v2, for reading and writing. |
| 753 |
spt_address is a specified transport address or 0, spt_assoc_id is a |
| 754 |
specified assoc_id or SCTP_FUTURE_ASSOC. |
| 755 |
|
| 756 |
Default: pathmaxrxt=sysctl_net.sctp.path_max_retrans, |
| 757 |
ps_retrans=sysctl_net.sctp.ps_retrans, pf_retrans=sysctl_net.sctp.pf_retrans. |
| 758 |
.TP |
| 759 |
.B SCTP_RECVRCVINFO |
| 760 |
Setting this option specifies that SCTP_RCVINFO (SCTP receive information |
| 761 |
about a received message) is returned as ancillary data by recvmsg(). See |
| 762 |
.B CONTROL MSGS |
| 763 |
for more details. |
| 764 |
|
| 765 |
The parameter type is int, for reading and writing. |
| 766 |
|
| 767 |
Default: 0. |
| 768 |
.TP |
| 769 |
.B SCTP_RECVNXTINFO |
| 770 |
Setting this option specifies that SCTP_NXTINFO (SCTP receive information |
| 771 |
of the next message) is returned as ancillary data by recvmsg(). See |
| 772 |
.B CONTROL MSGS |
| 773 |
for details. |
| 774 |
|
| 775 |
The parameter type is int, for reading and writing. |
| 776 |
|
| 777 |
Default: 0. |
| 778 |
.TP |
| 779 |
.B SCTP_DEFAULT_SNDINFO |
| 780 |
This option obsoletes SCTP_DEFAULT_SEND_PARAM. |
| 781 |
|
| 782 |
The parameter type is struct sctp_sndinfo. For reading, snd_assoc_id is |
| 783 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, snd_assoc_id is |
| 784 |
a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. |
| 785 |
|
| 786 |
Default: default_stream=0, default_flags=0, default_ppid=0, default_context=0. |
| 787 |
.TP |
| 788 |
.B SCTP_REUSE_PORT |
| 789 |
This option is similar to the socket level option SO_REUSEADDR, besides |
| 790 |
only supports one-to-one style SCTP sockets and must not be used after |
| 791 |
calling bind() or sctp_bindx(). |
| 792 |
|
| 793 |
The parameter type is int, for reading and writing. |
| 794 |
|
| 795 |
Default: 0. |
| 796 |
.TP |
| 797 |
.B SCTP_SOCKOPT_BINDX_ADD |
| 798 |
This option allows the user to bind a specific subset of addresses or, |
| 799 |
if the SCTP extension ASCONF is supported (see SCTP_ASCONF_SUPPORTED), |
| 800 |
add specific addresses. The API sctp_bindx() is based on this. |
| 801 |
|
| 802 |
The parameter type is struct sockaddr[], for writing only. |
| 803 |
.TP |
| 804 |
.B SCTP_SOCKOPT_BINDX_REM |
| 805 |
Similar to SCTP_SOCKOPT_BINDX_ADD, but delete specific addresses. The API |
| 806 |
sctp_bindx() is based on this. |
| 807 |
|
| 808 |
The parameter type is struct sockaddr[], for writing only. |
| 809 |
.TP |
| 810 |
.B SCTP_SOCKOPT_PEELOFF |
| 811 |
This option branches off an UDP type association into a separate socket |
| 812 |
returned back to users. The API sctp_peeloff() is based on this option. |
| 813 |
|
| 814 |
The parameter type is sctp_peeloff_arg_t, for reading only. associd is a |
| 815 |
specified assoc_id. |
| 816 |
.TP |
| 817 |
.B SCTP_SOCKOPT_PEELOFF_FLAGS |
| 818 |
Peel off an UDP type association from a socket similar to SCTP_SOCKOPT_PEELOFF |
| 819 |
option, but it allows the flags like O_CLOEXEC and O_NONBLOCK to be used when |
| 820 |
creating the new socket. The API sctp_peeloff_flags() is based on this option. |
| 821 |
|
| 822 |
The parameter type is sctp_peeloff_flags_arg_t, for reading only. associd |
| 823 |
is a specified assoc_id. |
| 824 |
.TP |
| 825 |
.B SCTP_SOCKOPT_CONNECTX_OLD |
| 826 |
This option allows a user to specify multiple addresses at which a peer can |
| 827 |
be reached, and the kernel stack will use the list of addresses to set up |
| 828 |
the association. The API sctp_connectx() is based on this option. |
| 829 |
|
| 830 |
The parameter type is struct sockaddr[], for writing only. |
| 831 |
.TP |
| 832 |
.B SCTP_SOCKOPT_CONNECTX |
| 833 |
Similar to SCTP_SOCKOPT_CONNECTX_OLD, but it returns the new assoc's id. |
| 834 |
The API sctp_connectx2() is based on this option. |
| 835 |
|
| 836 |
The parameter type is struct sockaddr[], for writing only. The new assoc's |
| 837 |
id is passed to users by the return value. |
| 838 |
.TP |
| 839 |
.B SCTP_SOCKOPT_CONNECTX3 |
| 840 |
Similar to SCTP_SOCKOPT_CONNECTX, but it uses different type parameter. The |
| 841 |
API sctp_connectx3() is based on this option. |
| 842 |
|
| 843 |
The parameter type is struct sctp_getaddrs_old, for reading only. assoc_id |
| 844 |
is set to the new assoc's id by kernel and passed to users. |
| 845 |
.TP |
| 846 |
.B SCTP_GET_PEER_ADDRS |
| 847 |
This option is used to gets all peer addresses in an association. The API |
| 848 |
sctp_getpaddrs() is based on this option. |
| 849 |
|
| 850 |
The parameter type is struct sctp_getaddrs, for reading only. assoc_id |
| 851 |
is a specified assoc_id. |
| 852 |
.TP |
| 853 |
.B SCTP_GET_LOCAL_ADDRS |
| 854 |
This option is used to get all local addresses in an association. The API |
| 855 |
sctp_getladdrs() is based on this option. |
| 856 |
|
| 857 |
The parameter type is struct sctp_getaddrs, for reading only. assoc_id |
| 858 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 859 |
.TP |
| 860 |
.B SCTP_ADAPTATION_LAYER |
| 861 |
This option requests that the local endpoint set the specified |
| 862 |
Adaptation Layer Indication parameter for all future INIT and |
| 863 |
INIT-ACK exchanges. |
| 864 |
|
| 865 |
The parameter type is struct sctp_setadaptation, for reading and writing. |
| 866 |
|
| 867 |
Default: 0. |
| 868 |
.TP |
| 869 |
.B SCTP_EVENT |
| 870 |
This option obsoletes SCTP_EVENTS socket option, and it can set or get |
| 871 |
one specific type of event for a specified association. |
| 872 |
|
| 873 |
The parameter type is struct sctp_event. For reading, se_assoc_id is |
| 874 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, se_assoc_id |
| 875 |
is a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. se_type |
| 876 |
can be one of enum sctp_sn_type. |
| 877 |
|
| 878 |
Default: 0. |
| 879 |
.TP |
| 880 |
.B SCTP_PR_SUPPORTED |
| 881 |
This socket option allows the enabling or disabling of the negotiation of |
| 882 |
PR-SCTP support for future associations. |
| 883 |
|
| 884 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 885 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 886 |
is SCTP_FUTURE_ASSOC. |
| 887 |
|
| 888 |
Default: sysctl_net.sctp.prsctp_enable. |
| 889 |
RFC: RFC7496. |
| 890 |
.TP |
| 891 |
.B SCTP_DEFAULT_PRINFO |
| 892 |
This option sets and gets the default parameters for PR-SCTP. |
| 893 |
|
| 894 |
The parameter type is struct sctp_default_prinfo. For reading, pr_assoc_id |
| 895 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, pr_assoc_id is |
| 896 |
a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. pr_policy can be |
| 897 |
SCTP_PR_SCTP_{NONE|TTL|RTX|PRIO}. |
| 898 |
|
| 899 |
Default: SCTP_PR_SCTP_NONE. |
| 900 |
Require: SCTP_DEFAULT_PRINFO. |
| 901 |
.TP |
| 902 |
.B SCTP_PR_ASSOC_STATUS |
| 903 |
This option is used to get Association-Specific PR-SCTP Status. |
| 904 |
|
| 905 |
The parameter type is struct sctp_prstatus, for reading only. |
| 906 |
sprstat_assoc_id is a specified assoc_id, sprstat_policy |
| 907 |
can be SCTP_PR_SCTP_{TTL|RTX|PRIO|ALL}. |
| 908 |
.TP |
| 909 |
.B SCTP_PR_STREAM_STATUS |
| 910 |
This option is used to get Stream-Specific PR-SCTP Status. |
| 911 |
|
| 912 |
The parameter type is struct sctp_prstatus, for reading only. |
| 913 |
sprstat_assoc_id is a specified assoc_id, sprstat_policy |
| 914 |
can be SCTP_PR_SCTP_{TTL|RTX|PRIO|ALL}. |
| 915 |
.TP |
| 916 |
.B SCTP_RECONFIG_SUPPORTED |
| 917 |
Enable the Stream Reconfiguration(RECONF) for the future associations. |
| 918 |
For different type of requests enabling, see SCTP_ENABLE_STREAM_RESET |
| 919 |
option. |
| 920 |
|
| 921 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 922 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 923 |
is SCTP_FUTURE_ASSOC. |
| 924 |
|
| 925 |
Default: sysctl_net.sctp.reconf_enable. |
| 926 |
RFC: RFC6525. |
| 927 |
.TP |
| 928 |
.B SCTP_ENABLE_STREAM_RESET |
| 929 |
This option allows a user to control whether the kernel processes or denies |
| 930 |
incoming requests in RECONF chunks. |
| 931 |
|
| 932 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id is |
| 933 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id is |
| 934 |
a specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. assoc_value |
| 935 |
can be SCTP_ENABLE_{RESET_STREAM_REQ|RESET_ASSOC_REQ|CHANGE_ASSOC_REQ}. |
| 936 |
|
| 937 |
Default: 0. |
| 938 |
Require: SCTP_RECONFIG_SUPPORTED. |
| 939 |
.TP |
| 940 |
.B SCTP_RESET_STREAMS |
| 941 |
This option allows the user to request the reset of incoming and/or |
| 942 |
outgoing streams. |
| 943 |
|
| 944 |
The parameter type is struct sctp_reset_streams, for writing only. |
| 945 |
srs_assoc_id is a specified assoc_id. |
| 946 |
|
| 947 |
Require: SCTP_ENABLE_STREAM_RESET. |
| 948 |
.TP |
| 949 |
.B SCTP_RESET_ASSOC |
| 950 |
This option allows a user to request the reset of the SSN/TSN. |
| 951 |
|
| 952 |
The parameter type is sctp_assoc_t, for writing only. It is a specified |
| 953 |
assoc_id. |
| 954 |
|
| 955 |
Require: SCTP_ENABLE_STREAM_RESET. |
| 956 |
.TP |
| 957 |
.B SCTP_ADD_STREAMS |
| 958 |
This option allows a user to request the addition of a number of incoming |
| 959 |
and/or outgoing streams. |
| 960 |
|
| 961 |
The parameter type is struct sctp_add_streams, for writing only. |
| 962 |
sas_assoc_id is a specified assoc_id. |
| 963 |
|
| 964 |
Require: SCTP_ENABLE_STREAM_RESET. |
| 965 |
.TP |
| 966 |
.B SCTP_STREAM_SCHEDULER |
| 967 |
This option is used to select a stream scheduler for data sending. |
| 968 |
|
| 969 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id is |
| 970 |
a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id is a |
| 971 |
specified assoc_id or SCTP_{FUTURE|CURRENT|ALL}_ASSOC. assoc_value can |
| 972 |
be SCTP_SS_{FCFS|PRIO|RR|FC|WFQ}. |
| 973 |
|
| 974 |
Default: SCTP_SS_FCFS. |
| 975 |
RFC: RFC8260. |
| 976 |
.TP |
| 977 |
.B SCTP_STREAM_SCHEDULER_VALUE |
| 978 |
Some stream schedulers require additional information to be set for |
| 979 |
individual streams. |
| 980 |
|
| 981 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id is |
| 982 |
a specified assoc_id. For writing, assoc_id is a specified assoc_id or |
| 983 |
SCTP_CURRENT_ASSOC. |
| 984 |
|
| 985 |
Require: SCTP_STREAM_SCHEDULER. |
| 986 |
.TP |
| 987 |
.B SCTP_INTERLEAVING_SUPPORTED |
| 988 |
This socket option allows the enabling or disabling of the negotiation of |
| 989 |
user message interleaving support for future associations. |
| 990 |
|
| 991 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 992 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 993 |
is SCTP_FUTURE_ASSOC. |
| 994 |
|
| 995 |
Default: sysctl_net.sctp.intl_enable. |
| 996 |
Require: SCTP_FRAGMENT_INTERLEAVE. |
| 997 |
RFC: RFC8260. |
| 998 |
.TP |
| 999 |
.B SCTP_ASCONF_SUPPORTED |
| 1000 |
Enable the Dynamic Address Reconfiguration(ASCONF) for the future |
| 1001 |
associations. |
| 1002 |
|
| 1003 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 1004 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 1005 |
is SCTP_FUTURE_ASSOC. |
| 1006 |
|
| 1007 |
Default: sysctl_net.sctp.addip_enable. |
| 1008 |
RFC: RFC5061. |
| 1009 |
.TP |
| 1010 |
.B SCTP_AUTO_ASCONF |
| 1011 |
This option will enable or disable the use of the automatic generation of |
| 1012 |
ASCONF chunks to add and delete addresses to an existing association. |
| 1013 |
Note that this option has two caveats, namely a) it only affects sockets |
| 1014 |
that are bound to all addresses available to the SCTP stack, and b) the |
| 1015 |
system administrator may have an overriding control that turns the ASCONF |
| 1016 |
feature off no matter what setting the socket option may have. |
| 1017 |
|
| 1018 |
The parameter type is int boolean, for reading and writing. |
| 1019 |
|
| 1020 |
Default: sysctl_net.sctp.default_auto_asconf. |
| 1021 |
.TP |
| 1022 |
.B SCTP_AUTH_SUPPORTED |
| 1023 |
Enable AUTH for the future associations. |
| 1024 |
|
| 1025 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 1026 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, ssoc_id |
| 1027 |
is SCTP_FUTURE_ASSOC. |
| 1028 |
|
| 1029 |
Default: sysctl_net.sctp.auth_enable. |
| 1030 |
RFC: RFC4895. |
| 1031 |
.TP |
| 1032 |
.B SCTP_ECN_SUPPORTED |
| 1033 |
Enable ECN for the future associations. |
| 1034 |
|
| 1035 |
The parameter type is struct sctp_assoc_value. For reading, assoc_id |
| 1036 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. For writing, assoc_id |
| 1037 |
is SCTP_FUTURE_ASSOC. |
| 1038 |
|
| 1039 |
Default: sysctl_net.sctp.ecn_enable. |
| 1040 |
.TP |
| 1041 |
.B SCTP_REMOTE_UDP_ENCAPS_PORT |
| 1042 |
This option is used to set the encapsulation port(a remote listening or |
| 1043 |
dest port) for SCTP over UDP, which allows SCTP traffic to pass through |
| 1044 |
legacy NATs that do not provide native SCTP support. |
| 1045 |
|
| 1046 |
The parameter type is struct sctp_udpencaps, for reading and writing. |
| 1047 |
sue_address is a specified transport address or 0, sue_assoc_id |
| 1048 |
is a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 1049 |
|
| 1050 |
Default: sysctl_net.sctp.encap_port. |
| 1051 |
RFC: RFC6951. |
| 1052 |
.TP |
| 1053 |
.B SCTP_PLPMTUD_PROBE_INTERVAL |
| 1054 |
This option is used to configure the PROBE_INTERVAL for the Packetization |
| 1055 |
Layer Path MTU Discovery(PLPMTUD). It can be set to a value >= 5000 or |
| 1056 |
0(disabled). |
| 1057 |
|
| 1058 |
The parameter type is struct sctp_probeinterval, for reading and writing. |
| 1059 |
spi_address is a specified transport address or 0, spi_assoc_id is |
| 1060 |
a specified assoc_id or SCTP_FUTURE_ASSOC. |
| 1061 |
|
| 1062 |
Default: 0(disabled). |
| 1063 |
RFC: RFC8899. |
| 1064 |
.SH AUTHORS |
| 1065 |
Sridhar Samudrala <[email protected]> |
| 1066 |
.SH "SEE ALSO" |
| 1067 |
.BR socket (7), |
| 1068 |
.BR socket (2), |
| 1069 |
.BR ip (7), |
| 1070 |
.BR bind (2), |
| 1071 |
.BR listen (2), |
| 1072 |
.BR accept (2), |
| 1073 |
.BR connect (2), |
| 1074 |
.BR sendmsg (2), |
| 1075 |
.BR recvmsg (2), |
| 1076 |
.BR sysctl (2), |
| 1077 |
.BR getsockopt (2), |
| 1078 |
.BR sctp_bindx (3), |
| 1079 |
.BR sctp_connectx (3), |
| 1080 |
.BR sctp_sendmsg (3), |
| 1081 |
.BR sctp_sendv (3), |
| 1082 |
.BR sctp_send (3), |
| 1083 |
.BR sctp_recvmsg (3), |
| 1084 |
.BR sctp_recvv (3), |
| 1085 |
.BR sctp_peeloff (3), |
| 1086 |
.BR sctp_getladdrs (3), |
| 1087 |
.BR sctp_getpaddrs (3), |
| 1088 |
.BR sctp_opt_info (3). |
| 1089 |
.sp |
| 1090 |
RFC2960, RFC3309 for the SCTP specification. |