aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:04:42 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:26:30 -0500
commit2a6fd78adec062f16f8662563115679e669efaca (patch)
tree3c2e93e5cccb7a11176079509e55f103464b1b98 /net/sctp/protocol.c
parent09ef7fecea40c5e4c0dfe35bed3f0ed8da554cf5 (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 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 20883ffd51d9..363274045032 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -150,9 +150,10 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist,
150 /* Add the address to the local list. */ 150 /* Add the address to the local list. */
151 addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); 151 addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC);
152 if (addr) { 152 if (addr) {
153 addr->a_h.v4.sin_family = AF_INET; 153 addr->a.v4.sin_family = AF_INET;
154 addr->a_h.v4.sin_port = 0; 154 addr->a.v4.sin_port = 0;
155 addr->a_h.v4.sin_addr.s_addr = ifa->ifa_local; 155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local;
156 addr->a_h = addr->a;
156 list_add_tail(&addr->list, addrlist); 157 list_add_tail(&addr->list, addrlist);
157 } 158 }
158 } 159 }