# nft add --echo --handle chain x y add chain ip x y # handle 1 Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/rule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rule.c b/src/rule.c index d58e58f1743a..99a99e8a3f9d 100644 --- a/src/rule.c +++ b/src/rule.c @@ -766,6 +766,8 @@ void chain_print_plain(const struct chain *chain, struct output_ctx *octx) chain->type, chain->hookstr, chain->priority, chain_policy2str(chain->policy)); } + if (octx->handle > 0) + nft_print(octx, " # handle %" PRIu64, chain->handle.handle.id); nft_print(octx, "\n"); } -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html