From: Jeremy Sowden <jeremy@azazel.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>, Florian Westphal <fw@strlen.de>
Cc: Netfilter Devel <netfilter-devel@vger.kernel.org>
Subject: [PATCH libnftnl 0/3] bitwise: support for passing mask and xor via registers
Date: Mon, 24 Feb 2020 13:11:58 +0000 [thread overview]
Message-ID: <20200224131201.512755-1-jeremy@azazel.net> (raw)
The kernel supports passing mask and xor values for bitwise boolean
operations via registers. These are mutually exclusive with the
existing data attributes: e.g., setting both NFTA_EXPR_BITWISE_MASK and
NFTA_EXPR_BITWISE_MREG is an error. Add support to libnftnl.
The first patch fixes a typo, the second updates the UAPI header and
the last contains the implementation.
Jeremy Sowden (3):
tests: bitwise: fix error message.
include: update nf_tables.h.
bitwise: add support for passing mask and xor via registers.
include/libnftnl/expr.h | 2 +
include/linux/netfilter/nf_tables.h | 4 ++
src/expr/bitwise.c | 60 ++++++++++++++++++++++---
tests/nft-expr_bitwise-test.c | 70 +++++++++++++++++++----------
4 files changed, 106 insertions(+), 30 deletions(-)
--
2.25.0
next reply other threads:[~2020-02-24 13:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-24 13:11 Jeremy Sowden [this message]
2020-02-24 13:11 ` [PATCH libnftnl 1/3] tests: bitwise: fix error message Jeremy Sowden
2020-02-24 13:12 ` [PATCH libnftnl 2/3] include: update nf_tables.h Jeremy Sowden
2020-02-24 13:12 ` [PATCH libnftnl 3/3] bitwise: add support for passing mask and xor via registers Jeremy Sowden
2020-03-02 13:33 ` [PATCH libnftnl 0/3] bitwise: " 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=20200224131201.512755-1-jeremy@azazel.net \
--to=jeremy@azazel.net \
--cc=fw@strlen.de \
--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).