]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Use verbose flag to toggle debug output
authorPhil Sutter <phil@nwl.cc>
Fri, 28 Jan 2022 18:35:54 +0000 (19:35 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 4 Feb 2022 08:49:23 +0000 (09:49 +0100)
commita761a026c60d4ce4e8f9a79b6e51ddc57fe97e1a
tree67d7f203ca401d7ad4267eaa1d1b358b0a9d18dd
parent98e69b7e74dc3fc2d7bbd87f8c2cae9559b15df8
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>
iptables/nft-shared.h
iptables/nft.c
iptables/nft.h
iptables/xtables.c