[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>
This commit is contained in:
Al Viro
2006-11-20 17:04:42 -08:00
committed by David S. Miller
parent 09ef7fecea
commit 2a6fd78ade
6 changed files with 19 additions and 7 deletions

View File

@@ -163,6 +163,8 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
if (!addr->a_h.v4.sin_port)
addr->a_h.v4.sin_port = bp->port;
flip_to_n(&addr->a, &addr->a_h);
addr->use_as_src = use_as_src;
INIT_LIST_HEAD(&addr->list);