| SCTP_GETADDRLEN(3) | Library Functions Manual | SCTP_GETADDRLEN(3) | 
sctp_getaddrlen —
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
int
  
  sctp_getaddrlen(sa_family_t
    family);
sctp_getaddrlen() function returns the size of a
  specific address family. This function is provided for application binary
  compatibility since it provides the application with the size the operating
  system thinks the specific address family is. Note that the function will
  actually create an SCTP socket and then gather the information via a
  getsockopt() system calls. If for some reason a SCTP
  socket cannot be created or the getsockopt() call
  fails, an error will be returned with errno set as
  specified in the socket() or
  getsockopt() system call.
sctp_getaddrlen() function can return the following
  errors:
EINVAL]Sockets API Extensions for the Stream Control Transmission Protocol (SCTP), RFC, 6458, December 2011.
| August 1, 2018 | NetBSD 9.3 |