aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-09 13:42:38 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-09 14:17:15 -0500
commitfa2c1de0bbd98985f7f930205de97ae0d3e86c16 (patch)
treef9f8eec3da27c7934a2241bf05e5054a9767eddf /include
parent2a37d755b885995443f11cdcaf1f9d4b5f246eab (diff)
netfilter: nf_tables: minor nf_chain_type cleanups
Minor nf_chain_type cleanups: - reorder struct to plug a hoe - rename struct module member to "owner" for consistency - rename nf_hookfn array to "hooks" for consistency - reorder initializers for better readability Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nf_tables.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index d3f70530a59a..342236550ef9 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -498,13 +498,23 @@ struct nft_af_info {
498int nft_register_afinfo(struct net *, struct nft_af_info *); 498int nft_register_afinfo(struct net *, struct nft_af_info *);
499void nft_unregister_afinfo(struct nft_af_info *); 499void nft_unregister_afinfo(struct nft_af_info *);
500 500
501/**
502 * struct nf_chain_type - nf_tables chain type info
503 *
504 * @name: name of the type
505 * @type: numeric identifier
506 * @family: address family
507 * @owner: module owner
508 * @hook_mask: mask of valid hooks
509 * @hooks: hookfn overrides
510 */
501struct nf_chain_type { 511struct nf_chain_type {
502 unsigned int hook_mask; 512 const char *name;
503 const char *name; 513 enum nft_chain_type type;
504 enum nft_chain_type type; 514 int family;
505 nf_hookfn *fn[NF_MAX_HOOKS]; 515 struct module *owner;
506 struct module *me; 516 unsigned int hook_mask;
507 int family; 517 nf_hookfn *hooks[NF_MAX_HOOKS];
508}; 518};
509 519
510int nft_register_chain_type(const struct nf_chain_type *); 520int nft_register_chain_type(const struct nf_chain_type *);