From 9189d1898f2f6c10689e1147e97f3a382d272e41 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 10 Sep 2020 16:19:44 +0200 Subject: nft: cache: Move nft_chain_find() over It is basically just a cache lookup, hence fits better in here. Signed-off-by: Phil Sutter --- iptables/nft-cache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'iptables/nft-cache.h') diff --git a/iptables/nft-cache.h b/iptables/nft-cache.h index 52ad2d39..085594c2 100644 --- a/iptables/nft-cache.h +++ b/iptables/nft-cache.h @@ -16,6 +16,9 @@ void nft_cache_build(struct nft_handle *h); int nft_cache_add_chain(struct nft_handle *h, const struct builtin_table *t, struct nftnl_chain *c); +struct nftnl_chain * +nft_chain_find(struct nft_handle *h, const char *table, const char *chain); + struct nftnl_set_list * nft_set_list_get(struct nft_handle *h, const char *table, const char *set); -- cgit v1.2.3