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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



`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@xxxxxxxxxx>
---
 src/payload.c | 1 +
 1 file changed, 1 insertion(+)

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)
 			continue;
 
 		expr->dtype	   = tmpl->dtype;
+		expr->byteorder	   = tmpl->byteorder;
 		expr->payload.desc = desc;
 		expr->payload.tmpl = tmpl;
 		return;
-- 
2.35.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux