summaryrefslogtreecommitdiffstats
path: root/src/expr/cmp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-10-16 01:30:20 +0200
committerPhil Sutter <phil@nwl.cc>2026-01-27 22:59:15 +0100
commit6077bf5cadd980038c223841c886aa8bc1d5abec (patch)
treed6ca2a1cca3bf6ba7f2589e2e9d72562d95e73e5 /src/expr/cmp.c
parentcb5f02ae63923fd129efd1ccef91ba87c66e9cc0 (diff)
data_reg: Introduce struct nftnl_data_reg::sizes array
This will hold the actual size of each component in concatenated data. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/expr/cmp.c')
-rw-r--r--src/expr/cmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr/cmp.c b/src/expr/cmp.c
index c88e06a..ec5dd62 100644
--- a/src/expr/cmp.c
+++ b/src/expr/cmp.c
@@ -38,7 +38,8 @@ 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, byteorder);
+ return nftnl_data_cpy(&cmp->data, data,
+ data_len, byteorder, NULL);
}
return 0;
}