From 75b8778e5bf630a3fc13e5d76bc64838135f02a9 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Mon, 24 Feb 2020 13:12:01 +0000 Subject: bitwise: add support for passing mask and xor via registers. 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. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/expr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/libnftnl') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index cfe456d..edeeeb1 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -118,6 +118,8 @@ enum { NFTNL_EXPR_BITWISE_XOR, NFTNL_EXPR_BITWISE_OP, NFTNL_EXPR_BITWISE_DATA, + NFTNL_EXPR_BITWISE_MREG, + NFTNL_EXPR_BITWISE_XREG, }; enum { -- cgit v1.2.3