netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libnftnl 0/2] map fixes
@ 2015-09-16 13:06 Pablo Neira Ayuso
  2015-09-16 13:06 ` [PATCH libnftnl 1/2] src: move new set and set_elem symbols to new group Pablo Neira Ayuso
  2015-09-16 13:06 ` [PATCH libnftnl 2/2] src: move new nftnl " Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-09-16 13:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: jengelh

The following patchset contains map fixes to address the problems reported by
Jan Engelhardt.

Pablo Neira Ayuso (2):
  src: move new set and set_elem symbols to new group
  src: move new nftnl symbols to new group

 src/libnftnl.map |  136 ++++++++++++++++++++++++------------------------------
 1 file changed, 60 insertions(+), 76 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH libnftnl 1/2] src: move new set and set_elem symbols to new group
  2015-09-16 13:06 [PATCH libnftnl 0/2] map fixes Pablo Neira Ayuso
@ 2015-09-16 13:06 ` Pablo Neira Ayuso
  2015-09-16 13:06 ` [PATCH libnftnl 2/2] src: move new nftnl " Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-09-16 13:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: jengelh

The LIBNFTNL_1.2.0 group was created during the 1.0.4 development cycle, so
move these new set and set_elem symbols there.

Fixes: b1e6bc9cbffd ("set: add support for set timeouts")
Reported-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/libnftnl.map |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/libnftnl.map b/src/libnftnl.map
index 14ec88c..0d04c4e 100644
--- a/src/libnftnl.map
+++ b/src/libnftnl.map
@@ -123,12 +123,10 @@ global:
   nft_set_attr_is_set;
   nft_set_attr_set;
   nft_set_attr_set_u32;
-  nft_set_attr_set_u64;
   nft_set_attr_set_str;
   nft_set_attr_get;
   nft_set_attr_get_str;
   nft_set_attr_get_u32;
-  nft_set_attr_get_u64;
   nft_set_nlmsg_build_payload;
   nft_set_nlmsg_parse;
   nft_set_parse;
@@ -157,12 +155,10 @@ global:
   nft_set_elem_attr_unset;
   nft_set_elem_attr_set;
   nft_set_elem_attr_set_u32;
-  nft_set_elem_attr_set_u64;
   nft_set_elem_attr_set_str;
   nft_set_elem_attr_get;
   nft_set_elem_attr_get_str;
   nft_set_elem_attr_get_u32;
-  nft_set_elem_attr_get_u64;
   nft_set_elem_nlmsg_build_payload;
   nft_set_elem_parse;
   nft_set_elem_parse_file;
@@ -487,6 +483,11 @@ LIBNFTNL_1.2.0 {
   nft_batch_iovec_len;
   nft_batch_iovec;
 
+  nft_set_attr_set_u64;
+  nft_set_attr_get_u64;
+  nft_set_elem_attr_set_u64;
+  nft_set_elem_attr_get_u64;
+
 #
 # aliases
 #
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH libnftnl 2/2] src: move new nftnl symbols to new group
  2015-09-16 13:06 [PATCH libnftnl 0/2] map fixes Pablo Neira Ayuso
  2015-09-16 13:06 ` [PATCH libnftnl 1/2] src: move new set and set_elem symbols to new group Pablo Neira Ayuso
@ 2015-09-16 13:06 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-09-16 13:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: jengelh

Add new LIBNFTNL_1.0.5 symbols that use the nftnl_ prefix.

Old symbols prefixed by nft_ will be gone at some point.

Fixes: b7154e52fc41 ("src: introduce nftnl_* aliases for all existing functions")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/libnftnl.map |  137 ++++++++++++++++++++++++------------------------------
 1 file changed, 60 insertions(+), 77 deletions(-)

diff --git a/src/libnftnl.map b/src/libnftnl.map
index 0d04c4e..1189005 100644
--- a/src/libnftnl.map
+++ b/src/libnftnl.map
@@ -192,10 +192,65 @@ global:
   nft_parse_err_free;
   nft_parse_perror;
 
-#
-# aliases
-#
+local: *;
+};
+
+LIBNFTNL_1.1 {
+  nft_table_attr_set_data;
+  nft_table_attr_get_data;
+  nft_chain_attr_set_data;
+  nft_chain_attr_get_data;
+  nft_rule_attr_set_data;
+  nft_rule_attr_get_data;
+  nft_set_attr_set_data;
+  nft_set_attr_get_data;
+} LIBNFTNL_1.0;
+
+LIBNFTNL_1.2 {
+  nft_set_elems_nlmsg_build_payload_iter;
+  nft_batch_is_supported;
+  nft_batch_begin;
+  nft_batch_end;
+
+  nft_gen_alloc;
+  nft_gen_free;
+  nft_gen_attr_is_set;
+  nft_gen_attr_unset;
+  nft_gen_attr_set_data;
+  nft_gen_attr_set;
+  nft_gen_attr_set_u32;
+  nft_gen_attr_get_data;
+  nft_gen_attr_get;
+  nft_gen_attr_get_u32;
+  nft_gen_nlmsg_parse;
+  nft_gen_snprintf;
+  nft_gen_fprintf;
+} LIBNFTNL_1.1;
+
+LIBNFTNL_1.2.0 {
+  nft_ruleset_ctx_is_set;
+  nft_ruleset_ctx_get;
+  nft_ruleset_ctx_get_u32;
+  nft_ruleset_parse_file_cb;
+  nft_ruleset_parse_buffer_cb;
+  nft_ruleset_ctx_free;
 
+  nft_batch_alloc;
+  nft_batch_update;
+  nft_batch_free;
+  nft_batch_buffer;
+  nft_batch_buffer_len;
+  nft_batch_iovec_len;
+  nft_batch_iovec;
+
+  nft_set_attr_set_u64;
+  nft_set_attr_get_u64;
+  nft_set_elem_attr_set_u64;
+  nft_set_elem_attr_get_u64;
+} LIBNFTNL_1.2;
+
+LIBNFTNL_1.0.5 {
+global:
   nftnl_table_alloc;
   nftnl_table_free;
   nftnl_table_is_set;
@@ -392,24 +447,6 @@ global:
   nftnl_parse_err_free;
   nftnl_parse_perror;
 
-
-local: *;
-};
-
-LIBNFTNL_1.1 {
-  nft_table_attr_set_data;
-  nft_table_attr_get_data;
-  nft_chain_attr_set_data;
-  nft_chain_attr_get_data;
-  nft_rule_attr_set_data;
-  nft_rule_attr_get_data;
-  nft_set_attr_set_data;
-  nft_set_attr_get_data;
-
-#
-# aliases
-#
-
   nftnl_table_set_data;
   nftnl_table_get_data;
   nftnl_chain_set_data;
@@ -419,32 +456,6 @@ LIBNFTNL_1.1 {
   nftnl_set_set_data;
   nftnl_set_get_data;
 
-} LIBNFTNL_1.0;
-
-LIBNFTNL_1.2 {
-  nft_set_elems_nlmsg_build_payload_iter;
-  nft_batch_is_supported;
-  nft_batch_begin;
-  nft_batch_end;
-
-  nft_gen_alloc;
-  nft_gen_free;
-  nft_gen_attr_is_set;
-  nft_gen_attr_unset;
-  nft_gen_attr_set_data;
-  nft_gen_attr_set;
-  nft_gen_attr_set_u32;
-  nft_gen_attr_get_data;
-  nft_gen_attr_get;
-  nft_gen_attr_get_u32;
-  nft_gen_nlmsg_parse;
-  nft_gen_snprintf;
-  nft_gen_fprintf;
-
-#
-# aliases
-#
-
   nftnl_set_elems_nlmsg_build_payload_iter;
   nftnl_batch_is_supported;
   nftnl_batch_begin;
@@ -464,34 +475,6 @@ LIBNFTNL_1.2 {
   nftnl_gen_snprintf;
   nftnl_gen_fprintf;
 
-
-} LIBNFTNL_1.1;
-
-LIBNFTNL_1.2.0 {
-  nft_ruleset_ctx_is_set;
-  nft_ruleset_ctx_get;
-  nft_ruleset_ctx_get_u32;
-  nft_ruleset_parse_file_cb;
-  nft_ruleset_parse_buffer_cb;
-  nft_ruleset_ctx_free;
-
-  nft_batch_alloc;
-  nft_batch_update;
-  nft_batch_free;
-  nft_batch_buffer;
-  nft_batch_buffer_len;
-  nft_batch_iovec_len;
-  nft_batch_iovec;
-
-  nft_set_attr_set_u64;
-  nft_set_attr_get_u64;
-  nft_set_elem_attr_set_u64;
-  nft_set_elem_attr_get_u64;
-
-#
-# aliases
-#
-
   nftnl_ruleset_ctx_is_set;
   nftnl_ruleset_ctx_get;
   nftnl_ruleset_ctx_get_u32;
@@ -506,5 +489,5 @@ LIBNFTNL_1.2.0 {
   nftnl_batch_buffer_len;
   nftnl_batch_iovec_len;
   nftnl_batch_iovec;
-
-} LIBNFTNL_1.2;
+local: *;
+};
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-16 13:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 13:06 [PATCH libnftnl 0/2] map fixes Pablo Neira Ayuso
2015-09-16 13:06 ` [PATCH libnftnl 1/2] src: move new set and set_elem symbols to new group Pablo Neira Ayuso
2015-09-16 13:06 ` [PATCH libnftnl 2/2] src: move new nftnl " Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).