path: root/include/nftables.h
diff options
authorEric Leblond <>2013-05-30 04:22:46 +0000
committerPablo Neira Ayuso <>2013-05-31 13:10:55 +0200
commit1d00bb3964184531f4533870c66de33de2d689e1 (patch)
tree8a817860dddfe198be379c27b47712cc470f17da /include/nftables.h
parent99fc209e6a465ccb6ea96ef81116e8d931e2261c (diff)
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 <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/nftables.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h
index 0eab1e50..ff91d934 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -21,6 +21,7 @@ enum debug_level {
extern unsigned int numeric_output;
+extern unsigned int handle_output;
extern unsigned int debug_level;
extern const char *include_paths[INCLUDE_PATHS_MAX];