[SK_BUFF]: Introduce skb_network_header()
[deliverable/linux.git] / net / ipv4 / xfrm4_mode_beet.c
index eaaf3565f3b224946b0a52ab6de677e845f418e1..505fca034a1ff2fc10aa718f7700acd31a0a0364 100644 (file)
@@ -98,7 +98,7 @@ static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb)
        }
 
        skb->nh.raw = skb->data + (phlen - sizeof(*iph));
-       memmove(skb->nh.raw, iph, sizeof(*iph));
+       memmove(skb_network_header(skb), iph, sizeof(*iph));
        skb->h.raw = skb->data + (phlen + optlen);
        skb->data = skb->h.raw;
 
@@ -112,7 +112,7 @@ static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb)
        else
                iph->protocol = protocol;
        iph->check = 0;
-       iph->check = ip_fast_csum(skb->nh.raw, iph->ihl);
+       iph->check = ip_fast_csum(skb_network_header(skb), iph->ihl);
        err = 0;
 out:
        return err;
This page took 0.037865 seconds and 5 git commands to generate.