summaryrefslogtreecommitdiffstats
path: root/src/expr/range.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/range.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/range.c')
-rw-r--r--src/expr/range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/range.c b/src/expr/range.c
index 4b3101e..12c91e9 100644
--- a/src/expr/range.c
+++ b/src/expr/range.c
@@ -38,10 +38,10 @@ nftnl_expr_range_set(struct nftnl_expr *e, uint16_t type,
break;
case NFTNL_EXPR_RANGE_FROM_DATA:
return nftnl_data_cpy(&range->data_from, data,
- data_len, byteorder);
+ data_len, byteorder, NULL);
case NFTNL_EXPR_RANGE_TO_DATA:
return nftnl_data_cpy(&range->data_to, data,
- data_len, byteorder);
+ data_len, byteorder, NULL);
}
return 0;
}