From 823a26e9557a7b0c8bd4b412ca1a583bbf5533ae Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 1 Oct 2025 14:57:36 +0200 Subject: 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 --- src/expr/objref.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/expr/objref.c') diff --git a/src/expr/objref.c b/src/expr/objref.c index 1b27e94..481103e 100644 --- a/src/expr/objref.c +++ b/src/expr/objref.c @@ -28,8 +28,9 @@ struct nftnl_expr_objref { } set; }; -static int nftnl_expr_objref_set(struct nftnl_expr *e, uint16_t type, - const void *data, uint32_t data_len) +static int +nftnl_expr_objref_set(struct nftnl_expr *e, uint16_t type, + const void *data, uint32_t data_len, uint32_t byteorder) { struct nftnl_expr_objref *objref = nftnl_expr_data(e); -- cgit v1.2.3