/* Get all peer address on a socket. This is a new SCTP API * described in the section 8.3 of the Sockets API Extensions for SCTP. * This is implemented using the getsockopt() interface. */ int sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) { return sctp_getaddrs(sd, id, SCTP_GET_PEER_ADDRS, addrs); } /* sctp_getpaddrs() */
/* Get all locally bound address on a socket. This is a new SCTP API * described in the section 8.5 of the Sockets API Extensions for SCTP. * This is implemented using the getsockopt() interface. */ int sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) { return sctp_getaddrs(sd, id, SCTP_GET_LOCAL_ADDRS, SCTP_GET_LOCAL_ADDRS_NUM_OLD, SCTP_GET_LOCAL_ADDRS_OLD, addrs); } /* sctp_getladdrs() */