summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAnders K. Pedersen <akp@cohaesio.com>2016-10-29 09:49:09 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2016-10-31 14:57:30 +0100
commitea9f60be2a31ed06198c22e2cd60d68866d0fdb3 (patch)
tree0d45e856e9f73049f457e51a55a2ee0191250f8a /tests
parent6c00ab9db921c1a2059eb3ea45769a12e0597236 (diff)
evaluate: Allow concatenation of rt nexthop etc.
Concatenations of rt nexthop or ct {orignal | reply} {saddr | daddr} fail due to # nft add rule ip filter postrouting flow table acct \{ ip saddr . rt nexthop counter \} <cmdline>:1:61-70: Error: can not use variable sized data types (invalid) in concat expressions add rule ip filter postrouting flow table acct { ip saddr . rt nexthop counter } ~~~~~~~~~~~^^^^^^^^^^ Fix this by reordering the check for variable size data types in expr_evaluate_concat() to happen after expr_evaluate() has been called (via list_member_evaluate()) for the sub expression. This allows expr_evaluate_[cr]t() to call [cr]t_expr_update_type() and set the data type before the check. Signed-off-by: Anders K. Pedersen <akp@cohaesio.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions