sctp.4 (869978d4c812a90e9d8be0a73f1b26b80b236424) sctp.4 (d8b5fd91b9011a1c21b7389e2dade6b9b1f6e425)
1.\" Copyright (c) 2006, Randall Stewart.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 21 unchanged lines hidden (view full) ---

30.\"
31.\" $FreeBSD$
32.\"
33.Dd December 15, 2006
34.Dt SCTP 4
35.Os
36.Sh NAME
37.Nm sctp
1.\" Copyright (c) 2006, Randall Stewart.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 21 unchanged lines hidden (view full) ---

30.\"
31.\" $FreeBSD$
32.\"
33.Dd December 15, 2006
34.Dt SCTP 4
35.Os
36.Sh NAME
37.Nm sctp
38.Nd Internet Stream Control Transmission Protocol
38.Nd Internet Stream Transmission Control Protocol
39.Sh SYNOPSIS
40.In sys/types.h
41.In sys/socket.h
39.Sh SYNOPSIS
40.In sys/types.h
41.In sys/socket.h
42.In netinet/sctp.h
42.In sys/sctp.h
43.Ft int
44.Fn socket AF_INET SOCK_STREAM IPPROTO_SCTP
45.Ft int
46.Fn socket AF_INET SOCK_SEQPACKET IPPROTO_SCTP
47.Sh DESCRIPTION
48The
49.Tn SCTP
50protocol provides reliable, flow-controlled, two-way

--- 98 unchanged lines hidden (view full) ---

149The FreeBSD implementation of
150.Tn SCTP
151also supports the following extensions:
152.Bl -hang -width indent
153.It "sctp partial reliability"
154This extension allows one to have message be skipped and
155not delivered based on some user specified parameters.
156.It "sctp dynamic addressing"
43.Ft int
44.Fn socket AF_INET SOCK_STREAM IPPROTO_SCTP
45.Ft int
46.Fn socket AF_INET SOCK_SEQPACKET IPPROTO_SCTP
47.Sh DESCRIPTION
48The
49.Tn SCTP
50protocol provides reliable, flow-controlled, two-way

--- 98 unchanged lines hidden (view full) ---

149The FreeBSD implementation of
150.Tn SCTP
151also supports the following extensions:
152.Bl -hang -width indent
153.It "sctp partial reliability"
154This extension allows one to have message be skipped and
155not delivered based on some user specified parameters.
156.It "sctp dynamic addressing"
157This extension allows addresses to be added and deleted
158dynamically from an existing association.
157 This extension allows addresses to be added and deleted
158dynammically from an existing association.
159.It "sctp authentication"
160This extension allows the user to authenticate specific
161peer chunks (including data) to validate that the peer
162who sent the message is in fact the peer who setup the
163association.
164A shared key option is also provided for
165so that two stacks can pre-share keys.
166.It "packet drop"
159.It "sctp authentication"
160This extension allows the user to authenticate specific
161peer chunks (including data) to validate that the peer
162who sent the message is in fact the peer who setup the
163association.
164A shared key option is also provided for
165so that two stacks can pre-share keys.
166.It "packet drop"
167Some routers support a special satellite protocol that
167 Some routers support a special satellite protocol that
168will report losses due to corruption.
169This allows retransmissions without subsequent loss in bandwidth
170utilization.
171.It "stream reset"
172This extension allows a user on either side to reset the
173stream sequence numbers used by any or all streams.
174.El
175.Pp
176.Tn SCTP
177supports a number of socket options which can be set with
178.Xr setsockopt 2
179and tested with
180.Xr getsockopt 2
181or
168will report losses due to corruption.
169This allows retransmissions without subsequent loss in bandwidth
170utilization.
171.It "stream reset"
172This extension allows a user on either side to reset the
173stream sequence numbers used by any or all streams.
174.El
175.Pp
176.Tn SCTP
177supports a number of socket options which can be set with
178.Xr setsockopt 2
179and tested with
180.Xr getsockopt 2
181or
182.Xr sctp_opt_info 3 :
182.Xr sctp_opt_info 2 :
183.Bl -tag -width ".Dv SCTP_SET_PEER_PRIMARY_ADDR"
184.It Dv SCTP_NODELAY
185Under most circumstances,
186.Tn SCTP
187sends data when it is presented; when outstanding data has not
188yet been acknowledged, it gathers small amounts of output to be
189sent in a single packet once an acknowledgement is received.
190For some clients, such as window systems that send a stream of

--- 217 unchanged lines hidden (view full) ---

408.It Dv SCTP_RESET_STREAMS
409This socket option is used to cause a stream sequence
410number or all stream sequence numbers to be reset.
411Note that the peer
412.Tn SCTP
413endpoint must also support the stream reset extension
414as well.
415.El
183.Bl -tag -width ".Dv SCTP_SET_PEER_PRIMARY_ADDR"
184.It Dv SCTP_NODELAY
185Under most circumstances,
186.Tn SCTP
187sends data when it is presented; when outstanding data has not
188yet been acknowledged, it gathers small amounts of output to be
189sent in a single packet once an acknowledgement is received.
190For some clients, such as window systems that send a stream of

--- 217 unchanged lines hidden (view full) ---

408.It Dv SCTP_RESET_STREAMS
409This socket option is used to cause a stream sequence
410number or all stream sequence numbers to be reset.
411Note that the peer
412.Tn SCTP
413endpoint must also support the stream reset extension
414as well.
415.El
416.Sh ERRORS
416.Sh SEE ALSO
417.Xr accept 2 ,
418.Xr bind 2 ,
419.Xr connect 2 ,
420.Xr listen 2 ,
421.Xr sctp_bindx 3 ,
422.Xr sctp_connectx 3 ,
423.Xr sctp_opt_info 3 ,
424.Xr sctp_recvmsg 3 ,
425.Xr sctp_sendmsg 3
417.Sh SEE ALSO
418.Xr accept 2 ,
419.Xr bind 2 ,
420.Xr connect 2 ,
421.Xr listen 2 ,
422.Xr sctp_bindx 3 ,
423.Xr sctp_connectx 3 ,
424.Xr sctp_opt_info 3 ,
425.Xr sctp_recvmsg 3 ,
426.Xr sctp_sendmsg 3