Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sctp_opt_info(3) [freebsd man page]

SCTP_OPT_INFO(3)					   BSD 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 sd, sctp_assoc_t id, 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 informa- tion into the operating system on a getsockopt() call. Other operating systems may not have this ability. For those who wish to write por- table code amongst multiple operating systems this call should be used for the following SCTP socket options. SCTP_RTOINFO SCTP_ASSOCINFO SCTP_PRIMARY_ADDR SCTP_PEER_ADDR_PARAMS SCTP_DEFAULT_SEND_PARAM SCTP_MAX_SEG SCTP_AUTH_ACTIVE_KEY SCTP_DELAYED_SACK SCTP_MAX_BURST SCTP_CONTEXT SCTP_EVENT SCTP_DEFAULT_SNDINFO SCTP_DEFAULT_PRINFO SCTP_STATUS SCTP_GET_PEER_ADDR_INFO SCTP_PEER_AUTH_CHUNKS SCTP_LOCAL_AUTH_CHUNKS RETURN VALUES
The call returns 0 on success and -1 upon error. 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) BUGS
Because the structure used for arg of the SCTP_MAX_BURST socket option has changed in FreeBSD 9.0 and higher, using SCTP_MAX_BURST as opt is only supported in FreeBSD 9.0 and higher. BSD
June 18, 2011 BSD

Check Out this Related Man Page

SCTP_OPT_INFO(3)					     Linux Programmer's Manual						  SCTP_OPT_INFO(3)

NAME
sctp_optinfo - Get options on a SCTP socket. SYNOPSIS
#include <sys/types.h> #include <sys/socket.h> #include <netinet/sctp.h> int sctp_opt_info(int sd, sctp_assoc_t id, int opt, void * arg, socklen_t * size); DESCRIPTION
sctp_opt_info is a wrapper library function that can be used to get SCTP level options on a socket. sd is the socket descriptor for which the option is requested. For one-to-many style sockets, id specifies the association to query. For one-to-one style sockets, id is ignored. opt specifes the SCTP socket option to get. arg is an option-specific structure buffer provided by the caller. size is a value-result parameter, initially containing the size of the buffer pointed to by arg and modifed on return to indicate the actual size of the value returned. RETURN VALUE
On success, sctp_opt_info returns 0 and on failure -1 is returned with errno set to the appropriate error code. SEE ALSO
sctp(7) sctp_bindx(3), sctp_connectx(3), sctp_sendmsg(3), sctp_send(3), sctp_recvmsg(3), sctp_peeloff(3), sctp_getpaddrs(3), sctp_getlad- drs(3), Linux 2.6 2004-01-30 SCTP_OPT_INFO(3)
Man Page