]> err.no Git - linux-2.6/commit
[SK_BUFF] ipv6: More skb_reset_network_header conversions related to skb_pull
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 10 Mar 2007 22:57:15 +0000 (19:57 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:24:54 +0000 (22:24 -0700)
commit1ced98e81d1c2f1ce965ecf8d0032e02ffa07bf0
tree135955ffd557808f97aeb126efde39f8eeaeefbf
parent8856dfa3e9b71ac2177016f66ace3a8978afecc1
[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>
net/ipv6/datagram.c
net/ipv6/netfilter/ip6t_REJECT.c
net/ipv6/raw.c
net/sctp/ipv6.c