1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" From: @(#)send.2 8.2 (Berkeley) 2/21/94
36 .Nd get SCTP socket information
44 .Fn sctp_opt_info "int sd" "sctp_assoc_t id" "int opt" "void *arg" "socklen_t *size"
48 call provides a multi-os compatible method for getting
51 data where an association identification needs to be passed
52 into the operating system.
59 has the ability to pass information
60 into the operating system on a
63 Other operating systems may not have this ability.
65 who wish to write portable code amongst multiple operating systems
66 this call should be used for the following SCTP
75 .Dv SCTP_PEER_ADDR_PARAMS
77 .Dv SCTP_DEFAULT_SEND_PARAM
81 .Dv SCTP_AUTH_ACTIVE_KEY
91 .Dv SCTP_DEFAULT_SNDINFO
93 .Dv SCTP_DEFAULT_PRINFO
97 .Dv SCTP_GET_PEER_ADDR_INFO
99 .Dv SCTP_PEER_AUTH_CHUNKS
101 .Dv SCTP_LOCAL_AUTH_CHUNKS
103 The call returns 0 on success and -1 upon error.
107 function can return the following errors:
116 was not one of the above listed SCTP socket
121 is not a valid descriptor.
131 Because the structure used for
135 socket option has changed in FreeBSD 9.0 and higher,
140 is only supported in FreeBSD 9.0 and higher.