summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-23 00:14:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-23 12:17:07 +0200
commitde2ebd0e1d43361ecd879170b40bac76a503aa65 (patch)
treed54eb9e0ed5d7a4f7ead8574f1d75293db40b26f
parent491851ee43dcd1a797a77e4e9d24d018696c4fe0 (diff)
parser: show all tables via list tables with no family
Default to the same behaviour that we get through `list ruleset', ie. # nft list tables table ip filter table ip6 filter # nft list tables ip table ip filter # nft list tables ip6 table ip6 filter Closes: http://bugzilla.netfilter.org/show_bug.cgi?id=1033 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/parser_bison.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 385e2140..36910a7f 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -767,7 +767,7 @@ list_cmd : TABLE table_spec
{
$$ = cmd_alloc(CMD_LIST, CMD_OBJ_TABLE, &$2, &@$, NULL);
}
- | TABLES tables_spec
+ | TABLES ruleset_spec
{
$$ = cmd_alloc(CMD_LIST, CMD_OBJ_TABLE, &$2, &@$, NULL);
}