summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-03-20 06:30:29 +0000
committerPatrick McHardy <kaber@trash.net>2015-04-12 19:59:27 +0100
commit35960e1e19bfe9135e33f13615d7d403d129192b (patch)
tree5e9843d4b76b18b3807453f8b051e628a04cd647 /src/parser_bison.y
parent7b5248972d9f2122c7b3683ca205d3165e7a9255 (diff)
setelem: add support for attaching comments to set elements
Syntax: # nft add element filter test { 192.168.0.1 comment "some host" } Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 736704a5..0f2d71a3 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1799,6 +1799,10 @@ set_elem_option : TIMEOUT time_spec
{
$<expr>0->timeout = $2 * 1000;
}
+ | COMMENT string
+ {
+ $<expr>0->comment = $2;
+ }
;
set_lhs_expr : concat_expr