[SK_BUFF] ipv6: More skb_reset_network_header conversions related to skb_pull
Now related to this form: skb->nh.ipv6h = (struct ipv6hdr *)skb_put(skb, length); That, as the others, is done when skb->tail is still equal to skb->data, making the conversion to skb_reset_network_header possible. Also one more case equivalent to skb->nh.raw = skb->data, of this form: iph = (struct ipv6hdr *)skb->data; <SNIP> skb->nh.ipv6h = iph; 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
8856dfa3e9
commit
1ced98e81d
@@ -575,7 +575,9 @@ static int rawv6_send_hdrinc(struct sock *sk, void *from, int length,
|
||||
skb->priority = sk->sk_priority;
|
||||
skb->dst = dst_clone(&rt->u.dst);
|
||||
|
||||
skb->nh.ipv6h = iph = (struct ipv6hdr *)skb_put(skb, length);
|
||||
skb_put(skb, length);
|
||||
skb_reset_network_header(skb);
|
||||
iph = skb->nh.ipv6h;
|
||||
|
||||
skb->ip_summed = CHECKSUM_NONE;
|
||||
|
||||
|
Reference in New Issue
Block a user