[SK_BUFF]: Introduce skb_transport_offset()
[deliverable/linux.git] / net / ipv6 / mip6.c
index 7b5f9d82e80145ddce339eb70d6bc9873d805eb4..85202891644e55a977997102c31be113aaacd4aa 100644 (file)
@@ -90,8 +90,9 @@ int mip6_mh_filter(struct sock *sk, struct sk_buff *skb)
 {
        struct ip6_mh *mh;
 
-       if (!pskb_may_pull(skb, (skb->h.raw - skb->data) + 8) ||
-           !pskb_may_pull(skb, (skb->h.raw - skb->data) + ((skb->h.raw[1] + 1) << 3)))
+       if (!pskb_may_pull(skb, (skb_transport_offset(skb)) + 8) ||
+           !pskb_may_pull(skb, (skb_transport_offset(skb) +
+                                ((skb->h.raw[1] + 1) << 3))))
                return -1;
 
        mh = (struct ip6_mh *)skb->h.raw;
This page took 0.023163 seconds and 5 git commands to generate.