nft: Drop interface mask leftovers from post_parse callbacks
[iptables-mirror.git] / iptables / nft-chain.h
blob166504c0c8f95c31a4b08849ecfd0b2d950b5828
1 #ifndef _NFT_CHAIN_H_
2 #define _NFT_CHAIN_H_
4 #include <libnftnl/chain.h>
5 #include <libiptc/linux_list.h>
7 struct nft_handle;
9 struct nft_chain {
10 struct list_head head;
11 struct hlist_node hnode;
12 struct nft_chain **base_slot;
13 struct nftnl_chain *nftnl;
14 bool fake;
17 #define CHAIN_NAME_HSIZE 512
19 struct nft_chain_list {
20 struct list_head list;
21 struct hlist_head names[CHAIN_NAME_HSIZE];
24 struct nft_chain *nft_chain_alloc(struct nftnl_chain *nftnl, bool fake);
25 void nft_chain_free(struct nft_chain *c);
27 struct nft_chain_list *nft_chain_list_alloc(void);
28 void nft_chain_list_free(struct nft_chain_list *list);
29 void nft_chain_list_del(struct nft_chain *c);
31 #endif /* _NFT_CHAIN_H_ */