]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: add flag to display rule handle as comment
authorEric Leblond <eric@regit.org>
Thu, 30 May 2013 04:22:46 +0000 (04:22 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 May 2013 11:10:55 +0000 (13:10 +0200)
commit1d00bb3964184531f4533870c66de33de2d689e1
tree8a817860dddfe198be379c27b47712cc470f17da
parent99fc209e6a465ccb6ea96ef81116e8d931e2261c
rule: add flag to display rule handle as comment

Knowing the rule handle is necessary to be able to delete a single
rule. It was not displayed till now in the output and it was thus
impossible to remove a single rule.
This patch modify the listing output to add a comment containing
the handle when the -a/--handle flag is provided.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/nftables.h
src/main.c
src/rule.c