Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dbe8656 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

[SCTP]: Annotate ->supported_addrs().

parent e1857ea2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -587,7 +587,7 @@ struct sctp_pf {
			  struct sctp_sock *);
			  struct sctp_sock *);
	int  (*bind_verify) (struct sctp_sock *, union sctp_addr *);
	int  (*bind_verify) (struct sctp_sock *, union sctp_addr *);
	int  (*send_verify) (struct sctp_sock *, union sctp_addr *);
	int  (*send_verify) (struct sctp_sock *, union sctp_addr *);
	int  (*supported_addrs)(const struct sctp_sock *, __u16 *);
	int  (*supported_addrs)(const struct sctp_sock *, __be16 *);
	struct sock *(*create_accept_sk) (struct sock *sk,
	struct sock *(*create_accept_sk) (struct sock *sk,
					  struct sctp_association *asoc);
					  struct sctp_association *asoc);
	void (*addr_v4map) (struct sctp_sock *, union sctp_addr *);
	void (*addr_v4map) (struct sctp_sock *, union sctp_addr *);
+1 −1
Original line number Original line Diff line number Diff line
@@ -853,7 +853,7 @@ static int sctp_inet6_send_verify(struct sctp_sock *opt, union sctp_addr *addr)
 * Returns number of addresses supported.
 * Returns number of addresses supported.
 */
 */
static int sctp_inet6_supported_addrs(const struct sctp_sock *opt,
static int sctp_inet6_supported_addrs(const struct sctp_sock *opt,
				      __u16 *types)
				      __be16 *types)
{
{
	types[0] = SCTP_PARAM_IPV4_ADDRESS;
	types[0] = SCTP_PARAM_IPV4_ADDRESS;
	types[1] = SCTP_PARAM_IPV6_ADDRESS;
	types[1] = SCTP_PARAM_IPV6_ADDRESS;
+1 −1
Original line number Original line Diff line number Diff line
@@ -791,7 +791,7 @@ static int sctp_inet_send_verify(struct sctp_sock *opt, union sctp_addr *addr)
 * chunks.  Returns number of addresses supported.
 * chunks.  Returns number of addresses supported.
 */
 */
static int sctp_inet_supported_addrs(const struct sctp_sock *opt,
static int sctp_inet_supported_addrs(const struct sctp_sock *opt,
				     __u16 *types)
				     __be16 *types)
{
{
	types[0] = SCTP_PARAM_IPV4_ADDRESS;
	types[0] = SCTP_PARAM_IPV4_ADDRESS;
	return 1;
	return 1;
+1 −1
Original line number Original line Diff line number Diff line
@@ -183,7 +183,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
	int num_types, addrs_len = 0;
	int num_types, addrs_len = 0;
	struct sctp_sock *sp;
	struct sctp_sock *sp;
	sctp_supported_addrs_param_t sat;
	sctp_supported_addrs_param_t sat;
	__u16 types[2];
	__be16 types[2];
	sctp_adaption_ind_param_t aiparam;
	sctp_adaption_ind_param_t aiparam;


	/* RFC 2960 3.3.2 Initiation (INIT) (1)
	/* RFC 2960 3.3.2 Initiation (INIT) (1)