]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/netfilter/x_tables.h
[NETFILTER]: x_tables: struct xt_table_info diet
[linux-2.6-omap-h63xx.git] / include / linux / netfilter / x_tables.h
index 9657c4ee70fc05770050026992ea62e030a4f35e..e305f2d0d4d1d98612d2e91d8e88e4852c6b533b 100644 (file)
@@ -269,9 +269,12 @@ struct xt_table_info
        unsigned int underflow[NF_INET_NUMHOOKS];
 
        /* ipt_entry tables: one per CPU */
-       char *entries[NR_CPUS];
+       /* Note : this field MUST be the last one, see XT_TABLE_INFO_SZ */
+       char *entries[1];
 };
 
+#define XT_TABLE_INFO_SZ (offsetof(struct xt_table_info, entries) \
+                         + nr_cpu_ids * sizeof(char *))
 extern int xt_register_target(struct xt_target *target);
 extern void xt_unregister_target(struct xt_target *target);
 extern int xt_register_targets(struct xt_target *target, unsigned int n);