]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/core/filter.c
[SK_BUFF]: Introduce skb_mac_header()
[net-next-2.6.git] / net / core / filter.c
index 8d185a089c53cdce1dced05fe08a6cd48f4d8f9e..1cc128d0542216e5a0f70837b0d71ecfcb1bd37b 100644 (file)
@@ -44,7 +44,7 @@ static void *__load_pointer(struct sk_buff *skb, int k)
        if (k >= SKF_NET_OFF)
                ptr = skb->nh.raw + k - SKF_NET_OFF;
        else if (k >= SKF_LL_OFF)
-               ptr = skb->mac.raw + k - SKF_LL_OFF;
+               ptr = skb_mac_header(skb) + k - SKF_LL_OFF;
 
        if (ptr >= skb->head && ptr < skb->tail)
                return ptr;