[SCTP]: Trivial sctp endianness annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -356,7 +356,7 @@ typedef enum {
|
||||
* addresses.
|
||||
*/
|
||||
#define IS_IPV4_UNUSABLE_ADDRESS(a) \
|
||||
((INADDR_BROADCAST == *a) || \
|
||||
((htonl(INADDR_BROADCAST) == *a) || \
|
||||
(MULTICAST(*a)) || \
|
||||
(((unsigned char *)(a))[0] == 0) || \
|
||||
((((unsigned char *)(a))[0] == 198) && \
|
||||
|
@@ -585,7 +585,7 @@ static inline int ipver2af(__u8 ipver)
|
||||
}
|
||||
|
||||
/* Convert from an address parameter type to an address family. */
|
||||
static inline int param_type2af(__u16 type)
|
||||
static inline int param_type2af(__be16 type)
|
||||
{
|
||||
switch (type) {
|
||||
case SCTP_PARAM_IPV4_ADDRESS:
|
||||
|
@@ -243,7 +243,7 @@ struct sctp_chunk *sctp_make_op_error(const struct sctp_association *,
|
||||
struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *,
|
||||
union sctp_addr *,
|
||||
struct sockaddr *,
|
||||
int, __u16);
|
||||
int, __be16);
|
||||
struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc,
|
||||
union sctp_addr *addr);
|
||||
struct sctp_chunk *sctp_process_asconf(struct sctp_association *asoc,
|
||||
|
@@ -1482,7 +1482,7 @@ struct sctp_association {
|
||||
/* This mask is used to disable sending the ASCONF chunk
|
||||
* with specified parameter to peer.
|
||||
*/
|
||||
__u16 addip_disabled_mask;
|
||||
__be16 addip_disabled_mask;
|
||||
|
||||
struct sctp_inithdr i;
|
||||
int cookie_len;
|
||||
|
Reference in New Issue
Block a user