]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-monitor: fix rule printing
authorFlorian Westphal <fw@strlen.de>
Sat, 12 Dec 2020 15:15:32 +0000 (16:15 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 14 Dec 2020 15:55:10 +0000 (16:55 +0100)
commit07af4da52ab3002c9cb510863b4eb7aaca4fb43b
tree68ea73cadae85fec430985d793d5fb8a0435741c
parent4bcbc8e11a2764f4537dc405962f83cd072cccfe
xtables-monitor: fix rule printing

trace_print_rule does a rule dump.  This prints unrelated rules
in the same chain.  Instead the function should only request the
specific handle.

Furthermore, flush output buffer afterwards so this plays nice when
output isn't a terminal.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-monitor.c