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
|
@ -1035,16 +1035,12 @@ static struct xfrm_state *__find_acq_core(struct net *net, struct xfrm_mark *m,
|
|||
break;
|
||||
|
||||
case AF_INET6:
|
||||
ipv6_addr_copy((struct in6_addr *)x->sel.daddr.a6,
|
||||
(const struct in6_addr *)daddr);
|
||||
ipv6_addr_copy((struct in6_addr *)x->sel.saddr.a6,
|
||||
(const struct in6_addr *)saddr);
|
||||
*(struct in6_addr *)x->sel.daddr.a6 = *(struct in6_addr *)daddr;
|
||||
*(struct in6_addr *)x->sel.saddr.a6 = *(struct in6_addr *)saddr;
|
||||
x->sel.prefixlen_d = 128;
|
||||
x->sel.prefixlen_s = 128;
|
||||
ipv6_addr_copy((struct in6_addr *)x->props.saddr.a6,
|
||||
(const struct in6_addr *)saddr);
|
||||
ipv6_addr_copy((struct in6_addr *)x->id.daddr.a6,
|
||||
(const struct in6_addr *)daddr);
|
||||
*(struct in6_addr *)x->props.saddr.a6 = *(struct in6_addr *)saddr;
|
||||
*(struct in6_addr *)x->id.daddr.a6 = *(struct in6_addr *)daddr;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue