netfilter: iptables: allow use of ipt_do_table as hookfn
[linux-2.6-microblaze.git] / net / ipv4 / netfilter / ip_tables.c
index 13acb68..2ed7c58 100644 (file)
@@ -222,10 +222,11 @@ struct ipt_entry *ipt_next_entry(const struct ipt_entry *entry)
 
 /* Returns one of the generic firewall policies, like NF_ACCEPT. */
 unsigned int
-ipt_do_table(struct sk_buff *skb,
-            const struct nf_hook_state *state,
-            struct xt_table *table)
+ipt_do_table(void *priv,
+            struct sk_buff *skb,
+            const struct nf_hook_state *state)
 {
+       const struct xt_table *table = priv;
        unsigned int hook = state->hook;
        static const char nulldevname[IFNAMSIZ] __attribute__((aligned(sizeof(long))));
        const struct iphdr *ip;