]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Match verbose ip{,6}tables output with legacy
authorPhil Sutter <phil@nwl.cc>
Sat, 4 Aug 2018 11:10:19 +0000 (13:10 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 4 Aug 2018 21:58:45 +0000 (23:58 +0200)
commit2ce9f65a374bad212899bc584d3e5f4698df6fc6
tree471dc1f9624e772b9072c63ef54546453b0ad8e1
parentcd79556bfa15056f2a430e57993a2a64c734b3cf
xtables: Match verbose ip{,6}tables output with legacy

Legacy ip{,6}tables prints feedback for various commands if in verbose
mode, make sure nft variants do the same.

There is one difference, namely when checking a rule (-C command):
Legacy ip{,6}tables print the rule in any case, nft variants don't in
case the rule wasn't found. Changing this though would require to
populate the nftnl_rule object just for printing, which is probably not
feasible.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft.c
iptables/nft.h
iptables/tests/shell/testcases/ip6tables/0002-verbose-output_0 [new file with mode: 0755]
iptables/tests/shell/testcases/iptables/0002-verbose-output_0 [new file with mode: 0755]
iptables/xtables-arp.c
iptables/xtables-eb.c
iptables/xtables.c