[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user