Currently only the rules are dumped and chains are constructed based
on the rules identities. Dump all chains manually to make sure we also
display empty chains.
Signed-off-by: Patrick McHardy <kaber@trash.net>
case CMD_OBJ_TABLE:
if (do_list_sets(ctx, table) < 0)
return -1;
+ if (netlink_list_chains(ctx, &cmd->handle) < 0)
+ return -1;
+ list_splice_tail_init(&ctx->list, &table->chains);
if (netlink_list_table(ctx, &cmd->handle) < 0)
return -1;
break;