[SCTP]: Beginning of conversion to net-endian for embedded sctp_addr.
Part 1: rename sctp_chunk->source, sctp_sockaddr_entry->a, sctp_transport->ipaddr and sctp_transport->saddr (to ..._h) The next patch will reintroduce these fields and keep them as net-endian mirrors of the original (renamed) ones. Split in two patches to make sure that we hadn't forgotten any instanes. Later in the series we'll eliminate uses of host-endian variants (basically switching users to net-endian counterparts as we progress through that mess). Then host-endian ones will die. Other embedded host-endian sctp_addr will be easier to switch directly, so we leave them alone for now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -713,7 +713,7 @@ struct sctp_chunk {
|
||||
unsigned long sent_at;
|
||||
|
||||
/* What is the origin IP address for this chunk? */
|
||||
union sctp_addr source;
|
||||
union sctp_addr source_h;
|
||||
/* Destination address for this chunk. */
|
||||
union sctp_addr dest;
|
||||
|
||||
@ -756,7 +756,7 @@ const union sctp_addr *sctp_source(const struct sctp_chunk *chunk);
|
||||
/* This is a structure for holding either an IPv6 or an IPv4 address. */
|
||||
struct sctp_sockaddr_entry {
|
||||
struct list_head list;
|
||||
union sctp_addr a;
|
||||
union sctp_addr a_h;
|
||||
__u8 use_as_src;
|
||||
};
|
||||
|
||||
@ -842,7 +842,7 @@ struct sctp_transport {
|
||||
int dead;
|
||||
|
||||
/* This is the peer's IP address and port. */
|
||||
union sctp_addr ipaddr;
|
||||
union sctp_addr ipaddr_h;
|
||||
|
||||
/* These are the functions we call to handle LLP stuff. */
|
||||
struct sctp_af *af_specific;
|
||||
@ -900,7 +900,7 @@ struct sctp_transport {
|
||||
/* Destination */
|
||||
struct dst_entry *dst;
|
||||
/* Source address. */
|
||||
union sctp_addr saddr;
|
||||
union sctp_addr saddr_h;
|
||||
|
||||
/* When was the last time(in jiffies) that a data packet was sent on
|
||||
* this transport? This is used to adjust the cwnd when the transport
|
||||
|
Reference in New Issue
Block a user