From a761a026c60d4ce4e8f9a79b6e51ddc57fe97e1a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 28 Jan 2022 19:35:54 +0100 Subject: nft: Use verbose flag to toggle debug output Copy legacy iptables' behaviour, printing debug output if verbose flag is given more than once. Since nft debug output applies to netlink messages which are not created until nft_action() phase, carrying verbose value is non-trivial - introduce a field in struct nft_handle for that. Signed-off-by: Phil Sutter --- iptables/nft.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft.h') diff --git a/iptables/nft.h b/iptables/nft.h index 4c78f761..fd116c2e 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -109,6 +109,7 @@ struct nft_handle { int8_t config_done; struct list_head cmd_list; bool cache_init; + int verbose; /* meta data, for error reporting */ struct { -- cgit v1.2.3