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/xtables.c | |
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/xtables.c')
-rw-r--r-- | iptables/xtables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c index 051d5c7b..c44b39ac 100644 --- a/iptables/xtables.c +++ b/iptables/xtables.c @@ -163,6 +163,7 @@ int do_commandx(struct nft_handle *h, int argc, char *argv[], char **table, h->ops->init_cs(&cs); do_parse(argc, argv, &p, &cs, &args); + h->verbose = p.verbose; if (!nft_table_builtin_find(h, p.table)) xtables_error(VERSION_PROBLEM, |