From 93aa490b66a01f5152d15d093c7ba9d50d6c3f19 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 3 Jul 2015 12:51:19 +0200 Subject: rule: missing family when listing of tables # nft list tables table ip nat instead of: # nft list tables table nat Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rule.c b/src/rule.c index b2090ddd..39b4d9a8 100644 --- a/src/rule.c +++ b/src/rule.c @@ -928,7 +928,9 @@ static int do_command_list(struct netlink_ctx *ctx, struct cmd *cmd) return -1; list_for_each_entry(table, &ctx->list, list) { - printf("table %s\n", table->handle.table); + printf("table %s %s\n", + family2str(table->handle.family), + table->handle.table); } return 0; } -- cgit v1.2.3