* [PATCH nft 1/3] parser_bison: Allow flushing flow tables
@ 2017-03-17 15:03 Elise Lennion
2017-03-20 10:15 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Elise Lennion @ 2017-03-17 15:03 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
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>
---
src/parser_bison.y | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 5d3d106..e44ff44 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);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH nft 1/3] parser_bison: Allow flushing flow tables
2017-03-17 15:03 [PATCH nft 1/3] parser_bison: Allow flushing flow tables Elise Lennion
@ 2017-03-20 10:15 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-03-20 10:15 UTC (permalink / raw)
To: Elise Lennion; +Cc: netfilter-devel
On Fri, Mar 17, 2017 at 12:03:17PM -0300, Elise Lennion wrote:
> 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'.
Applied, thanks Elise.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-20 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-17 15:03 [PATCH nft 1/3] parser_bison: Allow flushing flow tables Elise Lennion
2017-03-20 10:15 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).