[SK_BUFF]: Introduce ipipv6_hdr(), remove skb->h.ipv6h
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b0061ce49c
commit
39b89160df
@@ -47,8 +47,8 @@ static int xfrm6_beet_output(struct xfrm_state *x, struct sk_buff *skb)
|
||||
|
||||
skb_reset_network_header(skb);
|
||||
top_iph = ipv6_hdr(skb);
|
||||
skb->nh.raw = &top_iph->nexthdr;
|
||||
skb->h.ipv6h = top_iph + 1;
|
||||
skb->h.raw = skb->nh.raw + sizeof(struct ipv6hdr);
|
||||
skb->nh.raw += offsetof(struct ipv6hdr, nexthdr);
|
||||
|
||||
ipv6_addr_copy(&top_iph->saddr, (struct in6_addr *)&x->props.saddr);
|
||||
ipv6_addr_copy(&top_iph->daddr, (struct in6_addr *)&x->id.daddr);
|
||||
|
Reference in New Issue
Block a user