diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2018-01-10 00:29:01 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-05 16:39:35 +0100 |
commit | 51a087822e14d29bfbfd87892b792169d78d9863 (patch) | |
tree | c5fb69a47e43cf73571b2e2fdc18ac1b08c0ed8a /src | |
parent | 132179cce6e19bb5ebcd7b971742d8b3f49fcecc (diff) |
src: Print handle attribute in chains
Print handle attribute in chains when listing via '-a' option.
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/rule.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -746,7 +746,10 @@ static void chain_print(const struct chain *chain, struct output_ctx *octx) rule_print(rule, octx); nft_print(octx, "\n"); } - nft_print(octx, "\t}\n"); + nft_print(octx, "\t}"); + if (octx->handle > 0) + nft_print(octx, " # handle %" PRIu64, chain->handle.handle.id); + nft_print(octx, "\n"); } void chain_print_plain(const struct chain *chain, struct output_ctx *octx) |