netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft v2 0/9] bitwise shift support
@ 2020-01-18 21:23 Jeremy Sowden
  2020-01-18 21:23 ` [PATCH nft v2 1/9] Update gitignore Jeremy Sowden
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Jeremy Sowden @ 2020-01-18 21:23 UTC (permalink / raw)
  To: Netfilter Devel

The kernel supports bitwise shift operations.  This patch-set adds the
support to nft.  There are a few preliminary housekeeping patches.

Changes since v1:

 * update to the final kernel and libnftnl API's;
 * update nf_tables.h in a separate patch;
 * change byte-order of payload shifts generated by expr_evaluate_bits.

Jeremy Sowden (9):
  Update gitignore.
  src: white-space fixes.
  netlink_delinearize: fix typo.
  netlink_delinearize: remove commented out pr_debug statement.
  parser: add parenthesized statement expressions.
  evaluate: change shift byte-order to host-endian.
  include: update nf_tables.h.
  netlink: add support for handling shift expressions.
  tests: shell: add bit-shift tests.

 .gitignore                                    |  9 +++
 include/linux/netfilter/nf_tables.h           | 28 ++++++-
 src/evaluate.c                                | 13 ++-
 src/netlink_delinearize.c                     | 81 +++++++++++++++----
 src/netlink_linearize.c                       | 55 ++++++++++++-
 src/parser_bison.y                            | 25 +++---
 tests/shell/testcases/chains/0040mark_shift_0 | 11 +++
 tests/shell/testcases/chains/0040mark_shift_1 | 11 +++
 .../chains/dumps/0040mark_shift_0.nft         |  6 ++
 .../chains/dumps/0040mark_shift_1.nft         |  6 ++
 10 files changed, 204 insertions(+), 41 deletions(-)
 create mode 100755 tests/shell/testcases/chains/0040mark_shift_0
 create mode 100755 tests/shell/testcases/chains/0040mark_shift_1
 create mode 100644 tests/shell/testcases/chains/dumps/0040mark_shift_0.nft
 create mode 100644 tests/shell/testcases/chains/dumps/0040mark_shift_1.nft

-- 
2.24.1


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

end of thread, other threads:[~2020-01-19 19:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-18 21:23 [PATCH nft v2 0/9] bitwise shift support Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 1/9] Update gitignore Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 2/9] src: white-space fixes Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 3/9] netlink_delinearize: fix typo Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 4/9] netlink_delinearize: remove commented out pr_debug statement Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 5/9] parser: add parenthesized statement expressions Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 6/9] evaluate: change shift byte-order to host-endian Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 7/9] include: update nf_tables.h Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 8/9] netlink: add support for handling shift expressions Jeremy Sowden
2020-01-18 21:23 ` [PATCH nft v2 9/9] tests: shell: add bit-shift tests Jeremy Sowden
2020-01-19 19:58 ` [PATCH nft v2 0/9] bitwise shift support Jeremy Sowden

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