mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCTP]: Trivial parts of a_h -> a switch.
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
80f15d6241
commit
6244be4e06
4 changed files with 19 additions and 23 deletions
|
@ -239,8 +239,8 @@ union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp,
|
|||
|
||||
list_for_each(pos, &bp->address_list) {
|
||||
addr = list_entry(pos, struct sctp_sockaddr_entry, list);
|
||||
af = sctp_get_af_specific(addr->a_h.v4.sin_family);
|
||||
len = af->to_addr_param(&addr->a_h, &rawaddr);
|
||||
af = sctp_get_af_specific(addr->a.v4.sin_family);
|
||||
len = af->to_addr_param(&addr->a, &rawaddr);
|
||||
memcpy(addrparms.v, &rawaddr, len);
|
||||
addrparms.v += len;
|
||||
addrparms_len += len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue