]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ipv4/xfrm4_mode_transport.c
[IPSEC]: Set skb->data to payload in x->mode->output
[karo-tx-linux.git] / net / ipv4 / xfrm4_mode_transport.c
index 601047161ea6102ff80fb4e89ebd25672dae2378..10499d2ec65ef6d2fd9d120693b600e920f17c47 100644 (file)
@@ -27,8 +27,8 @@ static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb)
        int ihl = iph->ihl * 4;
 
        skb->transport_header = skb->network_header + ihl;
-       skb_push(skb, x->props.header_len);
-       skb_reset_network_header(skb);
+       skb_set_network_header(skb, -x->props.header_len);
+       __skb_pull(skb, ihl);
        memmove(skb_network_header(skb), iph, ihl);
        return 0;
 }