diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-02-18 16:29:44 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-02-18 16:29:44 +0100 |
commit | 4a2f965ca5a4e2593744bf75425d85e0e8ff814a (patch) | |
tree | ecef0f4577fc12ff7b8ef3ea2a858b2ed69cad4f /include/linux/netfilter | |
parent | fecea3a389c89de9afae2eda74fad894d5677229 (diff) | |
download | linux-4a2f965ca5a4e2593744bf75425d85e0e8ff814a.tar.gz linux-4a2f965ca5a4e2593744bf75425d85e0e8ff814a.tar.bz2 linux-4a2f965ca5a4e2593744bf75425d85e0e8ff814a.zip |
netfilter: x_tables: change elements in x_tables
Change to proper type on private pointer rather than anonymous void.
Keep active elements on same cache line.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r-- | include/linux/netfilter/x_tables.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index c7ee8744d26b..9fac88fc0e72 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h @@ -349,9 +349,6 @@ struct xt_table { struct list_head list; - /* A unique name... */ - const char name[XT_TABLE_MAXNAMELEN]; - /* What hooks you will enter on */ unsigned int valid_hooks; @@ -359,13 +356,15 @@ struct xt_table rwlock_t lock; /* Man behind the curtain... */ - //struct ip6t_table_info *private; - void *private; + struct xt_table_info *private; /* Set this to THIS_MODULE if you are a module, otherwise NULL */ struct module *me; u_int8_t af; /* address/protocol family */ + + /* A unique name... */ + const char name[XT_TABLE_MAXNAMELEN]; }; #include <linux/netfilter_ipv4.h> |