]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: Support filtering for a specific flowtable
authorPhil Sutter <phil@nwl.cc>
Tue, 30 Nov 2021 19:06:09 +0000 (20:06 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 3 Dec 2021 11:50:18 +0000 (12:50 +0100)
commitcb4b07d0b62836ab860e11e1f50c98656eeb4f9f
treedd8a67b372a79d230991a137a03ec8a3fe3573d3
parentde961b93066007ffcde12e49d8cd9bafd7201732
cache: Support filtering for a specific flowtable

Extend nft_cache_filter to hold a flowtable name so 'list flowtable'
command causes fetching the requested flowtable only.

Dump flowtables just once instead of for each table, merely assign
fetched data to tables inside the loop.

Signed-off-by: Phil Sutter <phil@nwl.cc>
include/cache.h
include/mnl.h
src/cache.c
src/mnl.c
src/netlink.c
tests/shell/testcases/listing/0020flowtable_0