mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
net: remove ipv6_addr_copy()
C assignment can handle struct in6_addr copying. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
40ba84993d
commit
4e3fd7a06d
66 changed files with 288 additions and 315 deletions
|
@ -804,7 +804,7 @@ static int sctp_send_asconf_del_ip(struct sock *sk,
|
|||
struct sockaddr_in6 *sin6;
|
||||
|
||||
sin6 = (struct sockaddr_in6 *)addrs;
|
||||
ipv6_addr_copy(&asoc->asconf_addr_del_pending->v6.sin6_addr, &sin6->sin6_addr);
|
||||
asoc->asconf_addr_del_pending->v6.sin6_addr = sin6->sin6_addr;
|
||||
}
|
||||
SCTP_DEBUG_PRINTK_IPADDR("send_asconf_del_ip: keep the last address asoc: %p ",
|
||||
" at %p\n", asoc, asoc->asconf_addr_del_pending,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue