Commit 3dbe86566ed262dae3b5472b9360cb5b65d42716

Authored by Al Viro
Committed by David S. Miller
1 parent e1857ea28d

[SCTP]: Annotate ->supported_addrs().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

include/net/sctp/structs.h
... ... @@ -587,7 +587,7 @@
587 587 struct sctp_sock *);
588 588 int (*bind_verify) (struct sctp_sock *, union sctp_addr *);
589 589 int (*send_verify) (struct sctp_sock *, union sctp_addr *);
590   - int (*supported_addrs)(const struct sctp_sock *, __u16 *);
  590 + int (*supported_addrs)(const struct sctp_sock *, __be16 *);
591 591 struct sock *(*create_accept_sk) (struct sock *sk,
592 592 struct sctp_association *asoc);
593 593 void (*addr_v4map) (struct sctp_sock *, union sctp_addr *);
... ... @@ -853,7 +853,7 @@
853 853 * Returns number of addresses supported.
854 854 */
855 855 static int sctp_inet6_supported_addrs(const struct sctp_sock *opt,
856   - __u16 *types)
  856 + __be16 *types)
857 857 {
858 858 types[0] = SCTP_PARAM_IPV4_ADDRESS;
859 859 types[1] = SCTP_PARAM_IPV6_ADDRESS;
... ... @@ -791,7 +791,7 @@
791 791 * chunks. Returns number of addresses supported.
792 792 */
793 793 static int sctp_inet_supported_addrs(const struct sctp_sock *opt,
794   - __u16 *types)
  794 + __be16 *types)
795 795 {
796 796 types[0] = SCTP_PARAM_IPV4_ADDRESS;
797 797 return 1;
net/sctp/sm_make_chunk.c
... ... @@ -183,7 +183,7 @@
183 183 int num_types, addrs_len = 0;
184 184 struct sctp_sock *sp;
185 185 sctp_supported_addrs_param_t sat;
186   - __u16 types[2];
  186 + __be16 types[2];
187 187 sctp_adaption_ind_param_t aiparam;
188 188  
189 189 /* RFC 2960 3.3.2 Initiation (INIT) (1)