From 31f031b0d348afd1c343692eca4b496c4bf5d05d Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 6 Nov 2014 09:05:28 +0100 Subject: nft: don't resolve hostnames by default This patch changes the default behaviour of nft to not translate IP addresses to hostnames when printing rules if no options are passed. The options regarding translations after this patch are: show IP addresses numerically (default behaviour) -n show IP addresses numerically -nn show Internet services and uid/gid numerically -nnn show protocols numerically -N (--reversedns) translate IP addresses to names The idea is to avoid breaking existing scripts that most likely rely on '-n' to save the ruleset, so we reduce the impact of this patch and provide a default behaviour that doesn't generate network traffic when listing / saving the ruleset. Joint work with Pablo. Suggested-by: Patrick McHardy Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/nftables.h b/include/nftables.h index c3d3dbfb..4c33ec63 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -26,6 +26,7 @@ enum debug_level { extern unsigned int max_errors; extern unsigned int numeric_output; +extern unsigned int ip2name_output; extern unsigned int handle_output; extern unsigned int debug_level; extern const char *include_paths[INCLUDE_PATHS_MAX]; -- cgit v1.2.3