Skip to content

Commit b9703ed

Browse files
committed
netfilter: nf_tables: support for adding new devices to an existing netdev chain
This patch allows users to add devices to an existing netdev chain. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent cdc3254 commit b9703ed

File tree

2 files changed

+142
-81
lines changed

2 files changed

+142
-81
lines changed

include/net/netfilter/nf_tables.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,8 @@ struct nft_trans_chain {
16091609
struct nft_stats __percpu *stats;
16101610
u8 policy;
16111611
u32 chain_id;
1612+
struct nft_base_chain *basechain;
1613+
struct list_head hook_list;
16121614
};
16131615

16141616
#define nft_trans_chain_update(trans) \
@@ -1621,6 +1623,10 @@ struct nft_trans_chain {
16211623
(((struct nft_trans_chain *)trans->data)->policy)
16221624
#define nft_trans_chain_id(trans) \
16231625
(((struct nft_trans_chain *)trans->data)->chain_id)
1626+
#define nft_trans_basechain(trans) \
1627+
(((struct nft_trans_chain *)trans->data)->basechain)
1628+
#define nft_trans_chain_hooks(trans) \
1629+
(((struct nft_trans_chain *)trans->data)->hook_list)
16241630

16251631
struct nft_trans_table {
16261632
bool update;

0 commit comments

Comments
 (0)