summaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:04:42 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:30 -0800
commit2a6fd78adec062f16f8662563115679e669efaca (patch)
tree3c2e93e5cccb7a11176079509e55f103464b1b98 /net/sctp/protocol.c
parent09ef7fecea40c5e4c0dfe35bed3f0ed8da554cf5 (diff)
downloadlinux-2a6fd78adec062f16f8662563115679e669efaca.tar.bz2
[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,
/* Add the address to the local list. */
addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC);
if (addr) {
- addr->a_h.v4.sin_family = AF_INET;
- addr->a_h.v4.sin_port = 0;
- addr->a_h.v4.sin_addr.s_addr = ifa->ifa_local;
+ addr->a.v4.sin_family = AF_INET;
+ addr->a.v4.sin_port = 0;
+ addr->a.v4.sin_addr.s_addr = ifa->ifa_local;
+ addr->a_h = addr->a;
list_add_tail(&addr->list, addrlist);
}
}