mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +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
|
@ -118,8 +118,8 @@ int ipv6_skb_to_auditdata(struct sk_buff *skb,
|
|||
ip6 = ipv6_hdr(skb);
|
||||
if (ip6 == NULL)
|
||||
return -EINVAL;
|
||||
ipv6_addr_copy(&ad->u.net.v6info.saddr, &ip6->saddr);
|
||||
ipv6_addr_copy(&ad->u.net.v6info.daddr, &ip6->daddr);
|
||||
ad->u.net.v6info.saddr = ip6->saddr;
|
||||
ad->u.net.v6info.daddr = ip6->daddr;
|
||||
ret = 0;
|
||||
/* IPv6 can have several extension header before the Transport header
|
||||
* skip them */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue