summaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
authorAl Viro2006-11-21 02:04:42 +0100
committerDavid S. Miller2006-12-03 06:26:30 +0100
commit2a6fd78adec062f16f8662563115679e669efaca (patch)
tree3c2e93e5cccb7a11176079509e55f103464b1b98 /net/sctp/sm_make_chunk.c
parent[SCTP]: Beginning of conversion to net-endian for embedded sctp_addr. (diff)
downloadkernel-qcow2-linux-2a6fd78adec062f16f8662563115679e669efaca.tar.gz
kernel-qcow2-linux-2a6fd78adec062f16f8662563115679e669efaca.tar.xz
kernel-qcow2-linux-2a6fd78adec062f16f8662563115679e669efaca.zip
[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/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 13109cfc3ae5..b8e0f72b319f 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -1032,6 +1032,7 @@ void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src,
union sctp_addr *dest)
{
memcpy(&chunk->source_h, src, sizeof(union sctp_addr));
+ flip_to_n(&chunk->source, &chunk->source_h);
memcpy(&chunk->dest, dest, sizeof(union sctp_addr));
}