diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2017-03-17 12:03:17 -0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-20 11:17:23 +0100 |
commit | 2daa0ee27fe13a9d64105f29144038fcaf4e7e1d (patch) | |
tree | 89f8cca346c46f56d42f600c66f15d4da32e2313 /src | |
parent | fb04310517f96741003a971eaf9cb799f52b62a2 (diff) |
parser_bison: Allow flushing flow tables
This patch enables the command flush on flow tables, which removes all
entries in it:
$ nft flush flow table filter ft-https
Command above flushes flow table 'ft-https' in table 'filter'.
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/parser_bison.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index 5d3d1069..e44ff44d 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -1127,6 +1127,10 @@ flush_cmd : TABLE table_spec { $$ = cmd_alloc(CMD_FLUSH, CMD_OBJ_SET, &$2, &@$, NULL); } + | FLOW TABLE set_spec + { + $$ = cmd_alloc(CMD_FLUSH, CMD_OBJ_SET, &$3, &@$, NULL); + } | RULESET ruleset_spec { $$ = cmd_alloc(CMD_FLUSH, CMD_OBJ_RULESET, &$2, &@$, NULL); |