]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/netfilter/ip6t_eui64.c
[SK_BUFF]: Introduce skb_mac_header()
[net-next-2.6.git] / net / ipv6 / netfilter / ip6t_eui64.c
index 967bed71d4a889c53638249640c3405656c73d52..c2676066a80fcca6e1e2c655018a94c3e1e89ac4 100644 (file)
@@ -32,8 +32,8 @@ match(const struct sk_buff *skb,
        unsigned char eui64[8];
        int i = 0;
 
-       if (!(skb->mac.raw >= skb->head &&
-             (skb->mac.raw + ETH_HLEN) <= skb->data) &&
+       if (!(skb_mac_header(skb) >= skb->head &&
+             (skb_mac_header(skb) + ETH_HLEN) <= skb->data) &&
            offset != 0) {
                *hotdrop = 1;
                return 0;