netfilter: nf_tables: add NFTA_CHAIN_ID attribute
This netlink attribute allows you to refer to chains inside a transaction as an alternative to the name and the handle. The chain binding support requires this new chain ID approach. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
@@ -1433,6 +1433,7 @@ struct nft_trans_chain {
|
||||
char *name;
|
||||
struct nft_stats __percpu *stats;
|
||||
u8 policy;
|
||||
u32 chain_id;
|
||||
};
|
||||
|
||||
#define nft_trans_chain_update(trans) \
|
||||
@@ -1443,6 +1444,8 @@ struct nft_trans_chain {
|
||||
(((struct nft_trans_chain *)trans->data)->stats)
|
||||
#define nft_trans_chain_policy(trans) \
|
||||
(((struct nft_trans_chain *)trans->data)->policy)
|
||||
#define nft_trans_chain_id(trans) \
|
||||
(((struct nft_trans_chain *)trans->data)->chain_id)
|
||||
|
||||
struct nft_trans_table {
|
||||
bool update;
|
||||
|
||||
Reference in New Issue
Block a user