summaryrefslogtreecommitdiffstats
path: root/include/set.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-09-27 14:24:40 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-10 23:43:42 +0200
commit38e70330ee6c6b8ddc805ed2a0eb45531166b658 (patch)
treedfb1128da27840ae973e27f5509f9e99e80db5fb /include/set.h
parent609a13fc2999e0f2f6910480ac079f3cfdabbd55 (diff)
set: Export nftnl_set_list_lookup_byname()
Rename and optimize internal function nftnl_set_lookup() for external use. Just like with nftnl_chain_list, use a hash table for fast set name lookups. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/set.h')
-rw-r--r--include/set.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/set.h b/include/set.h
index 3bcec7c..446acd2 100644
--- a/include/set.h
+++ b/include/set.h
@@ -5,6 +5,7 @@
struct nftnl_set {
struct list_head head;
+ struct hlist_node hnode;
uint32_t family;
uint32_t set_flags;