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/netlink.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/netlink.c')
-rw-r--r-- | src/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c index e8b01609..12352557 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -1718,7 +1718,7 @@ static struct rule *trace_lookup_rule(const struct nftnl_trace *nlt, if (!table) return NULL; - chain = chain_cache_find(table, &h); + chain = chain_cache_find(table, h.chain.name); if (!chain) return NULL; |