netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 1/3] rule: missing family when listing of tables
@ 2015-07-06 17:06 Pablo Neira Ayuso
  2015-07-06 17:06 ` [PATCH nft 2/3] src: set chain->hookstr from delinearization Pablo Neira Ayuso
  2015-07-06 17:06 ` [PATCH nft 3/3] rule: add do_list_tables() Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2015-07-06 17:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber

 # nft list tables
 table ip nat

instead of:

 # nft list tables
 table nat

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 src/rule.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/rule.c b/src/rule.c
index b2090dd..39b4d9a 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;
 		}
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-06 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 17:06 [PATCH nft 1/3] rule: missing family when listing of tables Pablo Neira Ayuso
2015-07-06 17:06 ` [PATCH nft 2/3] src: set chain->hookstr from delinearization Pablo Neira Ayuso
2015-07-06 17:06 ` [PATCH nft 3/3] rule: add do_list_tables() 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).