diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2024-11-13 22:39:12 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-11-19 16:05:49 +0100 |
commit | 638b687979befc4e2b22b92c6830ccc9bdcf41fb (patch) | |
tree | be3e21fa29de20d3de7594e04dd175f891a00033 /src | |
parent | 12bd1aea5233da4f20c19e4c7e6c4ff961185ea1 (diff) |
expr: bitwise: rename some boolean operation functions
In the next patch we add support for doing AND, OR and XOR operations
directly in the kernel, so rename some functions and an enum constant
related to mask-and-xor boolean operations.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/expr/bitwise.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expr/bitwise.c b/src/expr/bitwise.c index 1a945e9..9385219 100644 --- a/src/expr/bitwise.c +++ b/src/expr/bitwise.c @@ -198,8 +198,8 @@ nftnl_expr_bitwise_parse(struct nftnl_expr *e, struct nlattr *attr) } static int -nftnl_expr_bitwise_snprintf_bool(char *buf, size_t remain, - const struct nftnl_expr_bitwise *bitwise) +nftnl_expr_bitwise_snprintf_mask_xor(char *buf, size_t remain, + const struct nftnl_expr_bitwise *bitwise) { int offset = 0, ret; @@ -248,8 +248,8 @@ nftnl_expr_bitwise_snprintf(char *buf, size_t size, int err = -1; switch (bitwise->op) { - case NFT_BITWISE_BOOL: - err = nftnl_expr_bitwise_snprintf_bool(buf, size, bitwise); + case NFT_BITWISE_MASK_XOR: + err = nftnl_expr_bitwise_snprintf_mask_xor(buf, size, bitwise); break; case NFT_BITWISE_LSHIFT: err = nftnl_expr_bitwise_snprintf_shift(buf, size, "<<", bitwise); |