summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso2017-12-09 15:43:17 +0100
committerPablo Neira Ayuso2018-01-08 18:01:22 +0100
commitc2f9eafee9aaeedaad9eadbf47913f4681d723df (patch)
treeae05f60c0f5df4d1459ec7d301f8c8c1e1af174e /include/net/netfilter/nf_tables.h
parentnetfilter: nf_tables: remove multihook chains and families (diff)
downloadkernel-qcow2-linux-c2f9eafee9aaeedaad9eadbf47913f4681d723df.tar.gz
kernel-qcow2-linux-c2f9eafee9aaeedaad9eadbf47913f4681d723df.tar.xz
kernel-qcow2-linux-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/net/netfilter/nf_tables.h')
-rw-r--r--include/net/netfilter/nf_tables.h4
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 *);