summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_objects_dup_0
Commit message (Collapse)AuthorAgeFilesLines
* parser_bison: fail when specifying multiple commentsJose M. Guisado Gomez2020-09-141-0/+97
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>