netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libnftnl 0/3] bitwise: support for passing mask and xor via registers
@ 2020-02-24 13:11 Jeremy Sowden
  2020-02-24 13:11 ` [PATCH libnftnl 1/3] tests: bitwise: fix error message Jeremy Sowden
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jeremy Sowden @ 2020-02-24 13:11 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Florian Westphal; +Cc: Netfilter Devel

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


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

end of thread, other threads:[~2020-03-02 13:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-24 13:11 [PATCH libnftnl 0/3] bitwise: support for passing mask and xor via registers Jeremy Sowden
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

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).