Commit 20a73944 authored by David S. Miller's avatar David S. Miller

[IPV6]: Fix ipv6_addr_copy warning in ah6.c.

parent cbfa4d58
...@@ -75,8 +75,10 @@ int ah6_output(struct sk_buff *skb) ...@@ -75,8 +75,10 @@ int ah6_output(struct sk_buff *skb)
skb->nh.ipv6h->version = 6; skb->nh.ipv6h->version = 6;
skb->nh.ipv6h->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); skb->nh.ipv6h->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
skb->nh.ipv6h->nexthdr = IPPROTO_AH; skb->nh.ipv6h->nexthdr = IPPROTO_AH;
ipv6_addr_copy(&skb->nh.ipv6h->saddr, &x->props.saddr); ipv6_addr_copy(&skb->nh.ipv6h->saddr,
ipv6_addr_copy(&skb->nh.ipv6h->daddr, &x->id.daddr); (struct in6_addr *) &x->props.saddr);
ipv6_addr_copy(&skb->nh.ipv6h->daddr,
(struct in6_addr *) &x->id.daddr);
ah = (struct ip_auth_hdr*)(skb->nh.ipv6h+1); ah = (struct ip_auth_hdr*)(skb->nh.ipv6h+1);
ah->nexthdr = IPPROTO_IPV6; ah->nexthdr = IPPROTO_IPV6;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment