From: "Jose M. Guisado Gomez" <guigom@riseup.net>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 0/3] add object userdata and comment support
Date: Wed, 2 Sep 2020 11:12:38 +0200 [thread overview]
Message-ID: <20200902091241.1379-1-guigom@riseup.net> (raw)
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
next reply other threads:[~2020-09-02 9:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 9:12 Jose M. Guisado Gomez [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200902091241.1379-1-guigom@riseup.net \
--to=guigom@riseup.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).