diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:20 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:20 +0200 |
commit | 259ee5b3e29c1c76aad2fc7c2bbf470d414110f1 (patch) | |
tree | 8cf107f68018090b93bbf055e0e56cca35f6e730 /src/payload.c | |
parent | 653e35bca873414964c9cde0bd98bca3e0bf6692 (diff) |
netlink: fix byteorder of RHS of relational meta expression
The RHS needs to be postprocessed before updating the payload context
for byteorder conversion. Fixes iiftype match reconstruction.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/payload.c')
-rw-r--r-- | src/payload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload.c b/src/payload.c index a24748d5..003d84b8 100644 --- a/src/payload.c +++ b/src/payload.c @@ -99,7 +99,7 @@ struct expr *payload_expr_alloc(const struct location *loc, } expr = expr_alloc(loc, &payload_expr_ops, tmpl->dtype, - BYTEORDER_BIG_ENDIAN, tmpl->len); + tmpl->dtype->byteorder, tmpl->len); expr->payload.desc = desc; expr->payload.tmpl = tmpl; expr->payload.base = base; |