diff mbox series

[nft,v4,12/32] payload: set byte-order when completing expression

Message ID 20220404121410.188509-13-jeremy@azazel.net
State Changes Requested
Delegated to: Pablo Neira
Headers show
Series Extend values assignable to packet marks and payload fields | expand

Commit Message

Jeremy Sowden April 4, 2022, 12:13 p.m. UTC
`payload_expr_complete` is called during netlink delinearization to fill
in missing fields in the payload expression.  However, the byte-order
was not being set.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
 src/payload.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/src/payload.c b/src/payload.c
index f433c38421a4..e8fcd95d4bbe 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -857,6 +857,7 @@  void payload_expr_complete(struct expr *expr, const struct proto_ctx *ctx)
 		expr->dtype	   = tmpl->dtype;
+		expr->byteorder	   = tmpl->byteorder;
 		expr->payload.desc = desc;
 		expr->payload.tmpl = tmpl;