netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] add object userdata and comment support
@ 2020-09-02  9:12 Jose M. Guisado Gomez
  2020-09-02  9:12 ` [PATCH nf-next 1/3] netfilter: nf_tables: add userdata support for nft_object Jose M. Guisado Gomez
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jose M. Guisado Gomez @ 2020-09-02  9:12 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

This patch series enables userdata for objects. Initially used to store
comments, can be extended for other use cases in the future.

There is a new API version for libnftnl as it did not export a necessary
function, nftnl_obj_get_data, to support getting object data.

nf-next:
  netfilter: nf_tables: add userdata support for nft_object

 include/net/netfilter/nf_tables.h        |  2 ++
 include/uapi/linux/netfilter/nf_tables.h |  2 ++
 net/netfilter/nf_tables_api.c            | 39 +++++++++++++++++++-----
 3 files changed, 35 insertions(+), 8 deletions(-)

libnftnl:
  object: add userdata and comment support

 include/libnftnl/object.h           |  1 +
 include/libnftnl/udata.h            |  6 ++++++
 include/linux/netfilter/nf_tables.h |  2 ++
 include/obj.h                       |  5 +++++
 src/libnftnl.map                    |  4 ++++
 src/object.c                        | 26 ++++++++++++++++++++++++++
 6 files changed, 44 insertions(+)

nftables:
  src: add comment support for objects

 include/rule.h                                |  1 +
 src/mnl.c                                     | 12 +++++
 src/netlink.c                                 | 31 +++++++++++++
 src/parser_bison.y                            | 40 +++++++++++++++++
 src/rule.c                                    | 20 +++++++++
 .../testcases/optionals/comments_objects_0    | 44 +++++++++++++++++++
 .../optionals/dumps/comments_objects_0.nft    | 37 ++++++++++++++++
 7 files changed, 185 insertions(+)
 create mode 100755 tests/shell/testcases/optionals/comments_objects_0
 create mode 100644 tests/shell/testcases/optionals/dumps/comments_objects_0.nft

-- 
2.27.0


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

end of thread, other threads:[~2020-09-08 20:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02  9:12 [PATCH 0/3] add object userdata and comment support Jose M. Guisado Gomez
2020-09-02  9:12 ` [PATCH nf-next 1/3] netfilter: nf_tables: add userdata support for nft_object Jose M. Guisado Gomez
2020-09-08 10:42   ` Pablo Neira Ayuso
2020-09-08 11:01     ` [PATCH nf-next 1/3, v2] " Jose M. Guisado Gomez
2020-09-08 14:36       ` Pablo Neira Ayuso
2020-09-02  9:12 ` [PATCH libnftnl 2/3] object: add userdata and comment support Jose M. Guisado Gomez
2020-09-08 14:52   ` Pablo Neira Ayuso
2020-09-02  9:12 ` [PATCH nftables 3/3] src: add comment support for objects Jose M. Guisado Gomez
2020-09-03  9:16   ` [PATCH nftables 3/3, v2] " Jose M. Guisado Gomez
2020-09-08 14:53   ` [PATCH nftables 3/3] " 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).