aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_objref.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-01-08 15:45:58 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-01-18 15:02:32 +0100
commitd152159b89118841ebc0f7be2aadf79a22c6c501 (patch)
treef5c0e8b5cf3e1c8028e8aaf894714f20fb9dfc57 /net/netfilter/nft_objref.c
parent435f3f267780321a1aff41bdade257722328ead5 (diff)
downloadlinux-d152159b89118841ebc0f7be2aadf79a22c6c501.tar.gz
netfilter: nf_tables: prepare nft_object for lookups via hashtable
Add a 'key' structure for object, so we can look them up by name + table combination (the name can be the same in each table). Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_objref.c')
-rw-r--r--net/netfilter/nft_objref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_objref.c b/net/netfilter/nft_objref.c
index a3185ca2a3a985..58eb75ad61bff8 100644
--- a/net/netfilter/nft_objref.c
+++ b/net/netfilter/nft_objref.c
@@ -53,7 +53,7 @@ static int nft_objref_dump(struct sk_buff *skb, const struct nft_expr *expr)
{
const struct nft_object *obj = nft_objref_priv(expr);
- if (nla_put_string(skb, NFTA_OBJREF_IMM_NAME, obj->name) ||
+ if (nla_put_string(skb, NFTA_OBJREF_IMM_NAME, obj->key.name) ||
nla_put_be32(skb, NFTA_OBJREF_IMM_TYPE,
htonl(obj->ops->type->type)))
goto nla_put_failure;