]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-monitor: Print commands instead of -4/-6/-0 flags
authorPhil Sutter <phil@nwl.cc>
Fri, 12 Jul 2024 18:30:10 +0000 (20:30 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 27 Jul 2024 12:32:39 +0000 (14:32 +0200)
commit73ac92c769c5f27ac59266ad94031ab6d54af80b
treec303218d713736096d06d8c8f5236a1e2f720bed
parent5aa4935bc88fd8acf90cce4535e58fc3be85f055
xtables-monitor: Print commands instead of -4/-6/-0 flags

The '-4' and '-6' flags are a rarely used feature of iptables-restore.
The '-0' flag is purely artificial and not recognized anywhere (at least
not as an arptables rule prefix in this sense). Finally, there is no
such flag for ebtables in the first place. Go with a more intuitively
clear approach and instead print the typical command which added the
rule being printed.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/testcases/nft-only/0012-xtables-monitor_0
iptables/xtables-monitor.c