diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-02 18:20:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-02 18:20:52 +0200 |
commit | b873a1731d2481851c57eab3dcf3e719e9d45b50 (patch) | |
tree | 9556afb052aca100fd453e9b37bc455721217785 | |
parent | 438235af5453d34fb056e7230d5a5ad827e61c0d (diff) |
parser_bison: allow to used named limit from dictionaries too
Allow to use limit objects from dictionaries.
Fixes: c0697eabe832 ("src: add stateful object support for limit")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/parser_bison.y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index f996d9d9..7016f5b2 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1426,6 +1426,15 @@ map_block : /* empty */ { $$ = $<set>-1; } $1->flags |= NFT_SET_OBJECT; $$ = $1; } + | map_block TYPE + data_type_expr COLON LIMIT + stmt_separator + { + $1->key = $3; + $1->objtype = NFT_OBJECT_LIMIT; + $1->flags |= NFT_SET_OBJECT; + $$ = $1; + } | map_block FLAGS set_flag_list stmt_separator { $1->flags |= $3; |