summaryrefslogtreecommitdiffstats
path: root/include/nftables.h
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2013-05-30 04:22:46 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>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 <eric@regit.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r--include/nftables.h1
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 {
#define INCLUDE_PATHS_MAX 16
extern unsigned int numeric_output;
+extern unsigned int handle_output;
extern unsigned int debug_level;
extern const char *include_paths[INCLUDE_PATHS_MAX];