From 5c70f0a4734dc1424dbf9eb5215f9591afd750ba Mon Sep 17 00:00:00 2001 From: Sridhar Samudrala Date: Sun, 24 Aug 2003 22:17:26 -0700 Subject: [SCTP] draft07 API changes: sctp_getpaddrs(), sctp_getladdrs() now return a packed array of sockaddr_in/sockaddr_in6 structures instead of an array of sockaddr_storage structures. --- include/net/sctp/user.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/net') diff --git a/include/net/sctp/user.h b/include/net/sctp/user.h index da96859dba92..45f96479510f 100644 --- a/include/net/sctp/user.h +++ b/include/net/sctp/user.h @@ -551,13 +551,15 @@ struct sctp_status { }; /* - * 8.3, 8.5 get all peer/local addresses on a socket - * This parameter struct is for getsockopt + * 8.3, 8.5 get all peer/local addresses in an association. + * This parameter struct is used by SCTP_GET_PEER_ADDRS and + * SCTP_GET_LOCAL_ADDRS socket options used internally to implement + * sctp_getpaddrs() and sctp_getladdrs() API. */ struct sctp_getaddrs { sctp_assoc_t assoc_id; int addr_num; - struct sockaddr_storage *addrs; + struct sockaddr *addrs; }; /* These are bit fields for msghdr->msg_flags. See section 5.1. */ -- cgit v1.2.3