diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-12-09 15:43:17 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-08 18:01:22 +0100 |
commit | c2f9eafee9aaeedaad9eadbf47913f4681d723df (patch) | |
tree | ae05f60c0f5df4d1459ec7d301f8c8c1e1af174e /include | |
parent | c974a3a36468d1947c96f0c694c8a1b2e7810043 (diff) | |
download | linux-stable-c2f9eafee9aaeedaad9eadbf47913f4681d723df.tar.gz linux-stable-c2f9eafee9aaeedaad9eadbf47913f4681d723df.tar.bz2 linux-stable-c2f9eafee9aaeedaad9eadbf47913f4681d723df.zip |
netfilter: nf_tables: remove hooks from family definition
They don't belong to the family definition, move them to the filter
chain type definition instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index a3560fd55f99..e040b6151acc 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -880,7 +880,7 @@ enum nft_chain_type { * @family: address family * @owner: module owner * @hook_mask: mask of valid hooks - * @hooks: hookfn overrides + * @hooks: array of hook functions */ struct nf_chain_type { const char *name; @@ -974,7 +974,6 @@ enum nft_af_flags { * @owner: module owner * @tables: used internally * @flags: family flags - * @hooks: hookfn overrides for packet validation */ struct nft_af_info { struct list_head list; @@ -983,7 +982,6 @@ struct nft_af_info { struct module *owner; struct list_head tables; u32 flags; - nf_hookfn *hooks[NF_MAX_HOOKS]; }; int nft_register_afinfo(struct net *, struct nft_af_info *); |