Skip to contentSkip to conversation

set: export nftnl_set_clone

PATCH In review chayleaf 2 participants 2 messages Aug 10, 2024 – Aug 11, 2024 netfilter

lore
Share & tools
lore

chayleaf

author
#0 lore raw

PATCH 1/1 set: export nftnl_set_clone

This is present in libnftnl/set.h, so this has to either be exported or removed from the header.

---
 src/libnftnl.map | 1 +
 src/set.c        | 1 +
 2 files changed, 2 insertions(+)
src/libnftnl.map +1 -0
index 8fffff1..3f660de 100644
@@ -129,6 +129,7 @@ global:
   nftnl_set_get_str;
   nftnl_set_get_u32;
   nftnl_set_get_u64;
+  nftnl_set_clone;
   nftnl_set_nlmsg_build_payload;
   nftnl_set_nlmsg_parse;
   nftnl_set_parse;
src/set.c +1 -0
index 07e332d..c5f9518 100644
@@ -352,6 +352,7 @@ uint64_t nftnl_set_get_u64(const struct nftnl_set *s, uint16_t attr)
 	return val ? *val : 0;
 }
 
+EXPORT_SYMBOL(nftnl_set_clone);
 struct nftnl_set *nftnl_set_clone(const struct nftnl_set *set)
 {
 	struct nftnl_set *newset;
Signature · 1 line
2.44.1
maintainer
#1 lore raw
Quoted 2 lines · chayleaf

This is present in libnftnl/set.h, so this has to either be exported or removed from the header.

Please remove both nftnl_set_clone and nftnl_set_elem_clone, these are not used anymore, its dead code.