summaryrefslogtreecommitdiffstats
path: root/src/expr/cmp.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/cmp.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/cmp.c')
-rw-r--r--src/expr/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/cmp.c b/src/expr/cmp.c
index 4bcf2e4..c88e06a 100644
--- a/src/expr/cmp.c
+++ b/src/expr/cmp.c
@@ -38,7 +38,7 @@ nftnl_expr_cmp_set(struct nftnl_expr *e, uint16_t type,
memcpy(&cmp->op, data, data_len);
break;
case NFTNL_EXPR_CMP_DATA:
- return nftnl_data_cpy(&cmp->data, data, data_len);
+ return nftnl_data_cpy(&cmp->data, data, data_len, byteorder);
}
return 0;
}