summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing
diff options
context:
space:
mode:
authorJose M. Guisado Gomez <guigom@riseup.net>2020-09-10 18:40:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-09-14 13:44:34 +0200
commit8e58e96075dea109d217ba7070043e0d5d574b66 (patch)
treea8f015184e1798ec8cc2043b6faf04b887b0d5c2 /tests/shell/testcases/listing
parent293c9b114faef074dbbda06df73f86317d28ef9b (diff)
parser_bison: fail when specifying multiple comments
Before this patch grammar supported specifying multiple comments, and only the last value would be assigned. This patch adds a function to test if an attribute is already assigned and, if so, calls erec_queue with this attribute location. Use this function in order to check for duplication (or more) of comments for actions that support it. > nft add table inet filter { flags "dormant"\; comment "test"\; comment "another"\;} Error: You can only specify this once. This statement is duplicated. add table inet filter { flags dormant; comment test; comment another;} ^^^^^^^^^^^^^^^^ Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/listing')
0 files changed, 0 insertions, 0 deletions