diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-30 20:06:09 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-12-03 12:50:18 +0100 |
commit | cb4b07d0b62836ab860e11e1f50c98656eeb4f9f (patch) | |
tree | dd8a67b372a79d230991a137a03ec8a3fe3573d3 /include/mnl.h | |
parent | de961b93066007ffcde12e49d8cd9bafd7201732 (diff) |
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>
Diffstat (limited to 'include/mnl.h')
-rw-r--r-- | include/mnl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mnl.h b/include/mnl.h index 8659879c..b006192c 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -77,7 +77,8 @@ int mnl_nft_obj_add(struct netlink_ctx *ctx, struct cmd *cmd, int mnl_nft_obj_del(struct netlink_ctx *ctx, struct cmd *cmd, int type); struct nftnl_flowtable_list * -mnl_nft_flowtable_dump(struct netlink_ctx *ctx, int family, const char *table); +mnl_nft_flowtable_dump(struct netlink_ctx *ctx, int family, + const char *table, const char *ft); int mnl_nft_flowtable_add(struct netlink_ctx *ctx, struct cmd *cmd, unsigned int flags); |