diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:04:42 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:30 -0500 |
commit | 2a6fd78adec062f16f8662563115679e669efaca (patch) | |
tree | 3c2e93e5cccb7a11176079509e55f103464b1b98 /include | |
parent | 09ef7fecea40c5e4c0dfe35bed3f0ed8da554cf5 (diff) |
[SCTP] embedded sctp_addr: net-endian mirrors
Add sctp_chunk->source, sctp_sockaddr_entry->a, sctp_transport->ipaddr
and sctp_transport->saddr, maintain them as net-endian mirrors of
their host-endian counterparts.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sctp/structs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 953a73f9689c..2c35f2fd5601 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -713,6 +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 | union sctp_addr source_h; |
717 | /* Destination address for this chunk. */ | 718 | /* Destination address for this chunk. */ |
718 | union sctp_addr dest; | 719 | union sctp_addr dest; |
@@ -756,6 +757,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. */ | 757 | /* This is a structure for holding either an IPv6 or an IPv4 address. */ |
757 | struct sctp_sockaddr_entry { | 758 | struct sctp_sockaddr_entry { |
758 | struct list_head list; | 759 | struct list_head list; |
760 | union sctp_addr a; | ||
759 | union sctp_addr a_h; | 761 | union sctp_addr a_h; |
760 | __u8 use_as_src; | 762 | __u8 use_as_src; |
761 | }; | 763 | }; |
@@ -842,6 +844,7 @@ struct sctp_transport { | |||
842 | int dead; | 844 | int dead; |
843 | 845 | ||
844 | /* This is the peer's IP address and port. */ | 846 | /* This is the peer's IP address and port. */ |
847 | union sctp_addr ipaddr; | ||
845 | union sctp_addr ipaddr_h; | 848 | union sctp_addr ipaddr_h; |
846 | 849 | ||
847 | /* These are the functions we call to handle LLP stuff. */ | 850 | /* These are the functions we call to handle LLP stuff. */ |
@@ -900,6 +903,7 @@ struct sctp_transport { | |||
900 | /* Destination */ | 903 | /* Destination */ |
901 | struct dst_entry *dst; | 904 | struct dst_entry *dst; |
902 | /* Source address. */ | 905 | /* Source address. */ |
906 | union sctp_addr saddr; | ||
903 | union sctp_addr saddr_h; | 907 | union sctp_addr saddr_h; |
904 | 908 | ||
905 | /* When was the last time(in jiffies) that a data packet was sent on | 909 | /* When was the last time(in jiffies) that a data packet was sent on |