diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/netfilter/nf_tables.h | 22 |
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 { | |||
| 498 | int nft_register_afinfo(struct net *, struct nft_af_info *); | 498 | int nft_register_afinfo(struct net *, struct nft_af_info *); |
| 499 | void nft_unregister_afinfo(struct nft_af_info *); | 499 | void 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 | */ | ||
| 501 | struct nf_chain_type { | 511 | struct 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 | ||
| 510 | int nft_register_chain_type(const struct nf_chain_type *); | 520 | int nft_register_chain_type(const struct nf_chain_type *); |
