From 1d00bb3964184531f4533870c66de33de2d689e1 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 30 May 2013 04:22:46 +0000 Subject: 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 --- include/nftables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/nftables.h') 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]; -- cgit v1.2.3