netfilter: nf_tables: add stateful object reference expression
This new expression allows us to refer to existing stateful objects from rules. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
173705d9a2
commit
c97d22e68b
4 changed files with 133 additions and 0 deletions
|
|
@ -1137,6 +1137,20 @@ enum nft_fwd_attributes {
|
|||
};
|
||||
#define NFTA_FWD_MAX (__NFTA_FWD_MAX - 1)
|
||||
|
||||
/**
|
||||
* enum nft_objref_attributes - nf_tables stateful object expression netlink attributes
|
||||
*
|
||||
* @NFTA_OBJREF_IMM_TYPE: object type for immediate reference (NLA_U32: nft_register)
|
||||
* @NFTA_OBJREF_IMM_NAME: object name for immediate reference (NLA_STRING)
|
||||
*/
|
||||
enum nft_objref_attributes {
|
||||
NFTA_OBJREF_UNSPEC,
|
||||
NFTA_OBJREF_IMM_TYPE,
|
||||
NFTA_OBJREF_IMM_NAME,
|
||||
__NFTA_OBJREF_MAX
|
||||
};
|
||||
#define NFTA_OBJREF_MAX (__NFTA_OBJREF_MAX - 1)
|
||||
|
||||
/**
|
||||
* enum nft_gen_attributes - nf_tables ruleset generation attributes
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue