[SK_BUFF]: Use skb_reset_network_header in skb_push cases

skb_push updates and returns skb->data, so we can just call
skb_reset_network_header after the call to skb_push.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Arnaldo Carvalho de Melo
2007-04-10 20:46:21 -07:00
committed by David S. Miller
parent c1d2bbe1cd
commit e2d1bca7e6
12 changed files with 34 additions and 15 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ static int xfrm4_tunnel_output(struct xfrm_state *x, struct sk_buff *skb)
iph = skb->nh.iph;
skb->h.ipiph = iph;
skb->nh.raw = skb_push(skb, x->props.header_len);
skb_push(skb, x->props.header_len);
skb_reset_network_header(skb);
top_iph = skb->nh.iph;
top_iph->ihl = 5;