mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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>
This commit is contained in:
parent
2a37d755b8
commit
fa2c1de0bb
11 changed files with 44 additions and 34 deletions
|
|
@ -498,13 +498,23 @@ struct nft_af_info {
|
|||
int nft_register_afinfo(struct net *, struct nft_af_info *);
|
||||
void nft_unregister_afinfo(struct nft_af_info *);
|
||||
|
||||
/**
|
||||
* struct nf_chain_type - nf_tables chain type info
|
||||
*
|
||||
* @name: name of the type
|
||||
* @type: numeric identifier
|
||||
* @family: address family
|
||||
* @owner: module owner
|
||||
* @hook_mask: mask of valid hooks
|
||||
* @hooks: hookfn overrides
|
||||
*/
|
||||
struct nf_chain_type {
|
||||
unsigned int hook_mask;
|
||||
const char *name;
|
||||
enum nft_chain_type type;
|
||||
nf_hookfn *fn[NF_MAX_HOOKS];
|
||||
struct module *me;
|
||||
int family;
|
||||
const char *name;
|
||||
enum nft_chain_type type;
|
||||
int family;
|
||||
struct module *owner;
|
||||
unsigned int hook_mask;
|
||||
nf_hookfn *hooks[NF_MAX_HOOKS];
|
||||
};
|
||||
|
||||
int nft_register_chain_type(const struct nf_chain_type *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue