4 #include <libnftnl/chain.h>
5 #include <libiptc/linux_list.h>
10 struct list_head head
;
11 struct hlist_node hnode
;
12 struct nft_chain
**base_slot
;
13 struct nftnl_chain
*nftnl
;
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_ */