path: root/tests/shell
diff options
authorPhil Sutter <>2017-03-20 17:38:55 +0100
committerPablo Neira Ayuso <>2017-03-21 14:17:45 +0100
commita6b75b837f5e851c80f8f2dc508b11f1693af1b3 (patch)
tree5a6673352f5292ce6e7f9d602398977550f1fefd /tests/shell
parentcad4da77d6330d08eea6a4c73c70c012d20d4e3b (diff)
evaluate: set: Allow for set elems to be sets
Recursive use of sets is handled in parts by parser_bison.y, which has a rule for inline unnamed sets in set_list_member_expr, e.g. like this: | add rule ip saddr { {, }, } Yet there is another way to have an unnamed set inline, which is via define: | define myset = { |, |, | } | add rule ip saddr { $myset, } This didn't work because the inline set comes in as EXPR_SET_ELEM with EXPR_SET as key. This patch handles that case by replacing the former by a copy of the latter, so the following set list merging can take place. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell')
0 files changed, 0 insertions, 0 deletions