diff options
author | Phil Sutter <phil@nwl.cc> | 2022-01-28 19:35:54 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-02-04 09:49:23 +0100 |
commit | a761a026c60d4ce4e8f9a79b6e51ddc57fe97e1a (patch) | |
tree | 67d7f203ca401d7ad4267eaa1d1b358b0a9d18dd /iptables/nft.h | |
parent | 98e69b7e74dc3fc2d7bbd87f8c2cae9559b15df8 (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |