The kernel supports bitwise shift operations. This patch-set adds the support to libnftnl. There are couple of preliminary housekeeping patches. Jeremy Sowden (6): Update gitignore. bitwise: fix some incorrect indentation. bitwise: add helper to print boolean expressions. include: update nf_tables.h. bitwise: add support for new netlink attributes. bitwise: add support for left- and right-shifts. .gitignore | 9 ++ include/libnftnl/expr.h | 2 + include/linux/netfilter/nf_tables.h | 24 +++- src/expr/bitwise.c | 93 +++++++++++-- tests/nft-expr_bitwise-test.c | 204 +++++++++++++++++++++++++--- 5 files changed, 304 insertions(+), 28 deletions(-) -- 2.24.1