The length value is needed for netlink debug output of concatenated
ranges. Set it to one of the inner elements' lengths (which should be
identical).
Since the inner element length may not be set initially, set it in
eval phase again. This covers at least all cases in tests/py.
Without this, netlink_gen_concat_key() et al. would have to inspect
element types and extract lengths accordingly, this is much easier.
Signed-off-by: Phil Sutter <phil@nwl.cc>
datatype_set(range, left->dtype);
range->flags |= EXPR_F_CONSTANT;
+ range->len = left->len;
return 0;
}
BYTEORDER_INVALID, 0);
expr->left = left;
expr->right = right;
+ expr->len = left->len;
return expr;
}