diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-04-29 20:04:55 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-05-02 23:30:35 +0200 |
commit | 797b4f343fe248ca7a516b68d93895121e574c15 (patch) | |
tree | 6565f3cf5f77d31cdbcf8976c4fb02cda3a5da2b /src/rule.c | |
parent | 3392883f4566030853184f261d3ec1a62a7b4c1d (diff) |
src: pass chain name to chain_cache_find()
You can identify chains through the unique handle in deletions, update
this interface to take a string instead of the handle to prepare for
the introduction of 64-bit handle chain lookups.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2608,7 +2608,7 @@ static int do_command_rename(struct netlink_ctx *ctx, struct cmd *cmd) switch (cmd->obj) { case CMD_OBJ_CHAIN: - chain = chain_cache_find(table, &cmd->handle); + chain = chain_cache_find(table, cmd->handle.chain.name); return mnl_nft_chain_rename(ctx, cmd, chain); default: |