summaryrefslogtreecommitdiffstats
path: root/include/expr_ops.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-10-01 14:57:36 +0200
committerPhil Sutter <phil@nwl.cc>2026-01-27 22:59:15 +0100
commit823a26e9557a7b0c8bd4b412ca1a583bbf5533ae (patch)
tree009fb2e275a0ec4fd18570630257299548863a53 /include/expr_ops.h
parent7daf5a4fde637dfc2aee4480c48777b6e5b22aa2 (diff)
expr: Pass byteorder to struct expr_ops::set callback
Prepare for storing data reg byteorder, no functional change intended. Note the odd case in expr/byteorder.c since there is a local variable with same name already. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include/expr_ops.h')
-rw-r--r--include/expr_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/expr_ops.h b/include/expr_ops.h
index 6cfb3b5..9c816c0 100644
--- a/include/expr_ops.h
+++ b/include/expr_ops.h
@@ -19,7 +19,7 @@ struct expr_ops {
struct attr_policy *attr_policy;
void (*init)(const struct nftnl_expr *e);
void (*free)(const struct nftnl_expr *e);
- int (*set)(struct nftnl_expr *e, uint16_t type, const void *data, uint32_t data_len);
+ int (*set)(struct nftnl_expr *e, uint16_t type, const void *data, uint32_t data_len, uint32_t byteorder);
const void *(*get)(const struct nftnl_expr *e, uint16_t type, uint32_t *data_len);
int (*parse)(struct nftnl_expr *e, struct nlattr *attr);
void (*build)(struct nlmsghdr *nlh, const struct nftnl_expr *e);