mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCTP]: Beginning of conversion to net-endian for embedded sctp_addr.
Part 1: rename sctp_chunk->source, sctp_sockaddr_entry->a, sctp_transport->ipaddr and sctp_transport->saddr (to ..._h) The next patch will reintroduce these fields and keep them as net-endian mirrors of the original (renamed) ones. Split in two patches to make sure that we hadn't forgotten any instanes. Later in the series we'll eliminate uses of host-endian variants (basically switching users to net-endian counterparts as we progress through that mess). Then host-endian ones will die. Other embedded host-endian sctp_addr will be easier to switch directly, so we leave them alone for now. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
30330ee00c
commit
09ef7fecea
12 changed files with 91 additions and 91 deletions
|
@ -155,12 +155,12 @@ static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_commo
|
|||
if (epb->type == SCTP_EP_TYPE_ASSOCIATION) {
|
||||
asoc = sctp_assoc(epb);
|
||||
peer = asoc->peer.primary_path;
|
||||
primary = &peer->saddr;
|
||||
primary = &peer->saddr_h;
|
||||
}
|
||||
|
||||
list_for_each(pos, &epb->bind_addr.address_list) {
|
||||
laddr = list_entry(pos, struct sctp_sockaddr_entry, list);
|
||||
addr = (union sctp_addr *)&laddr->a;
|
||||
addr = (union sctp_addr *)&laddr->a_h;
|
||||
af = sctp_get_af_specific(addr->sa.sa_family);
|
||||
if (primary && af->cmp_addr(addr, primary)) {
|
||||
seq_printf(seq, "*");
|
||||
|
@ -180,7 +180,7 @@ static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_associa
|
|||
primary = &(assoc->peer.primary_addr);
|
||||
list_for_each(pos, &assoc->peer.transport_addr_list) {
|
||||
transport = list_entry(pos, struct sctp_transport, transports);
|
||||
addr = (union sctp_addr *)&transport->ipaddr;
|
||||
addr = (union sctp_addr *)&transport->ipaddr_h;
|
||||
af = sctp_get_af_specific(addr->sa.sa_family);
|
||||
if (af->cmp_addr(addr, primary)) {
|
||||
seq_printf(seq, "*");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue