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

[SCTP]: Trivial sctp endianness annotations.

parent 72f17e1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) && \
+1 −1
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -868,7 +868,7 @@ struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *asoc,
	struct list_head *entry, *pos;
	struct sctp_transport *transport;
	struct sctp_chunk *chunk;
	__u32 key = htonl(tsn);
	__be32 key = htonl(tsn);

	match = NULL;

Loading