]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/netfilter/ip6table_mangle.c
[IP]: Introduce ip_hdrlen()
[net-next-2.6.git] / net / ipv6 / netfilter / ip6table_mangle.c
index 0c468d35a93743b34e7773966d313455dd89687f..da2c1994539b3d73e471786898f8ada0d6a5cdc3 100644 (file)
@@ -138,7 +138,7 @@ ip6t_local_hook(unsigned int hook,
 #if 0
        /* root is playing with raw sockets. */
        if ((*pskb)->len < sizeof(struct iphdr)
-           || (*pskb)->nh.iph->ihl * 4 < sizeof(struct iphdr)) {
+           || ip_hdrlen(*pskb) < sizeof(struct iphdr)) {
                if (net_ratelimit())
                        printk("ip6t_hook: happy cracking.\n");
                return NF_ACCEPT;