[IP]: Introduce ip_hdrlen()
[deliverable/linux.git] / net / ipv4 / netfilter / ip_tables.c
index 50cc4b92e2845ae2699e225807582370b09621da..f66966650212d78e5066b7823c36ae683e8f0b00 100644 (file)
@@ -198,7 +198,7 @@ int do_match(struct ipt_entry_match *m,
 {
        /* Stop iteration if it doesn't match */
        if (!m->u.kernel.match->match(skb, in, out, m->u.kernel.match, m->data,
-                                     offset, skb->nh.iph->ihl*4, hotdrop))
+                                     offset, ip_hdrlen(skb), hotdrop))
                return 1;
        else
                return 0;
This page took 0.024925 seconds and 5 git commands to generate.