summaryrefslogtreecommitdiffstats
path: root/src/expr/bitwise.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-10-01 14:59:39 +0200
committerPhil Sutter <phil@nwl.cc>2026-01-27 22:59:15 +0100
commitcb5f02ae63923fd129efd1ccef91ba87c66e9cc0 (patch)
tree927bb3a2a44f090998baf430602a76fd03dd1ce1 /src/expr/bitwise.c
parent823a26e9557a7b0c8bd4b412ca1a583bbf5533ae (diff)
data_reg: Introduce struct nftnl_data_reg::byteorder field
Expression setters populate it from the passed 'byteorder' parameter. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/expr/bitwise.c')
-rw-r--r--src/expr/bitwise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expr/bitwise.c b/src/expr/bitwise.c
index da2b6d2..a775285 100644
--- a/src/expr/bitwise.c
+++ b/src/expr/bitwise.c
@@ -51,11 +51,11 @@ nftnl_expr_bitwise_set(struct nftnl_expr *e, uint16_t type,
memcpy(&bitwise->len, data, data_len);
break;
case NFTNL_EXPR_BITWISE_MASK:
- return nftnl_data_cpy(&bitwise->mask, data, data_len);
+ return nftnl_data_cpy(&bitwise->mask, data, data_len, byteorder);
case NFTNL_EXPR_BITWISE_XOR:
- return nftnl_data_cpy(&bitwise->xor, data, data_len);
+ return nftnl_data_cpy(&bitwise->xor, data, data_len, byteorder);
case NFTNL_EXPR_BITWISE_DATA:
- return nftnl_data_cpy(&bitwise->data, data, data_len);
+ return nftnl_data_cpy(&bitwise->data, data, data_len, byteorder);
}
return 0;
}