From 38e70330ee6c6b8ddc805ed2a0eb45531166b658 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 27 Sep 2019 14:24:40 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- include/set.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/set.h') 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; -- cgit v1.2.3