diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:04:10 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:29 -0500 |
commit | 09ef7fecea40c5e4c0dfe35bed3f0ed8da554cf5 (patch) | |
tree | b293f6aa012265dcb413d7dd6c0b68b1f2676b9f /include/net | |
parent | 30330ee00ce077de9d459c17125573ff618bd7a9 (diff) |
[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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/structs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 2aa61ac9a9f3..953a73f9689c 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -713,7 +713,7 @@ struct sctp_chunk { | |||
713 | unsigned long sent_at; | 713 | unsigned long sent_at; |
714 | 714 | ||
715 | /* What is the origin IP address for this chunk? */ | 715 | /* What is the origin IP address for this chunk? */ |
716 | union sctp_addr source; | 716 | union sctp_addr source_h; |
717 | /* Destination address for this chunk. */ | 717 | /* Destination address for this chunk. */ |
718 | union sctp_addr dest; | 718 | union sctp_addr dest; |
719 | 719 | ||
@@ -756,7 +756,7 @@ const union sctp_addr *sctp_source(const struct sctp_chunk *chunk); | |||
756 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ | 756 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ |
757 | struct sctp_sockaddr_entry { | 757 | struct sctp_sockaddr_entry { |
758 | struct list_head list; | 758 | struct list_head list; |
759 | union sctp_addr a; | 759 | union sctp_addr a_h; |
760 | __u8 use_as_src; | 760 | __u8 use_as_src; |
761 | }; | 761 | }; |
762 | 762 | ||
@@ -842,7 +842,7 @@ struct sctp_transport { | |||
842 | int dead; | 842 | int dead; |
843 | 843 | ||
844 | /* This is the peer's IP address and port. */ | 844 | /* This is the peer's IP address and port. */ |
845 | union sctp_addr ipaddr; | 845 | union sctp_addr ipaddr_h; |
846 | 846 | ||
847 | /* These are the functions we call to handle LLP stuff. */ | 847 | /* These are the functions we call to handle LLP stuff. */ |
848 | struct sctp_af *af_specific; | 848 | struct sctp_af *af_specific; |
@@ -900,7 +900,7 @@ struct sctp_transport { | |||
900 | /* Destination */ | 900 | /* Destination */ |
901 | struct dst_entry *dst; | 901 | struct dst_entry *dst; |
902 | /* Source address. */ | 902 | /* Source address. */ |
903 | union sctp_addr saddr; | 903 | union sctp_addr saddr_h; |
904 | 904 | ||
905 | /* When was the last time(in jiffies) that a data packet was sent on | 905 | /* When was the last time(in jiffies) that a data packet was sent on |
906 | * this transport? This is used to adjust the cwnd when the transport | 906 | * this transport? This is used to adjust the cwnd when the transport |