]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft-cache: Support partial cache per table
authorPhil Sutter <phil@nwl.cc>
Wed, 25 Sep 2019 11:49:19 +0000 (13:49 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 17 Oct 2019 17:02:42 +0000 (19:02 +0200)
commite2883c5531e6ee269845a8a11e09dd07efa2088f
treecb661086ad2e94127de35ff9f79fab716262a98a
parentc6d3ae9437e96c0076e43907f1867d7e306ca9fe
nft-cache: Support partial cache per table

Accept a builtin_table pointer in __nft_build_cache() and pass it along
when fetching chains and rules to operate on that table only (unless the
pointer is NULL).

Make use of it in nft_chain_list_get() since that accepts a table name
and performs a builtin table lookup internally already.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft-cache.c