Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
SCTP_OPT_INFO(3)       FreeBSD Library Functions Manual       SCTP_OPT_INFO(3)

NAME
     sctp_opt_info - get SCTP socket information

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <sys/types.h>
     #include <sys/socket.h>
     #include <netinet/sctp.h>

     int
     sctp_opt_info(int s, sctp_assoc_t, int opt, void *arg, socklen_t *size);

DESCRIPTION
     The sctp_opt_info() call provides a multi-os compatible method for
     getting specific getsockopt() data where an association identification
     needs to be passed into the operating system.  For FreeBSD a direct
     getsockopt() may be used, since FreeBSD has the ability to pass
     information into the operating system on a getsockopt() call.  Other
     operating systems may not have this ability.  For those who wish to write
     portable code amongst multiple operating systems this call should be used
     for the following SCTP socket options.

     SCTP_RTOINFO

     SCTP_ASSOCINFO

     SCTP_PRIMARY_ADDR

     SCTP_SET_PEER_PRIMARY_ADDR

     SCTP_STATUS

     SCTP_GET_PEER_ADDR_INFO

     SCTP_AUTH_ACTIVE_KEY

     SCTP_PEER_AUTH_CHUNKS

     SCTP_LOCAL_AUTH_CHUNKS

ERRORS
     The sctp_opt_info() function can return the following errors.

     [EINVAL]           The argument arg value was invalid.

     [EOPNOTSUPP]       The argument opt was not one of the above listed SCTP
                        socket options.

     [EBADF]            The argument s is not a valid descriptor.

     [ENOTSOCK]         The argument s is not a socket.

SEE ALSO
     getsockopt(2), sctp(4)

FreeBSD 11.0-PRERELEASE        December 15, 2006       FreeBSD 11.0-PRERELEASE

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | ERRORS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=sctp_opt_info&sektion=3&manpath=FreeBSD+7.0-RELEASE>

home | help