summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ttl.txlate
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-01-21 17:43:34 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-01 15:47:10 +0100
commit32ebc39f71e8107d6069a9f6fba8338a2823889d (patch)
tree8d95564a04affe15140bdd53571c9c4010ac9d86 /extensions/libipt_ttl.txlate
parent4c54c892443c20a1d0e1212d541da0e81647058a (diff)
ebtables: Fix rule listing with counters
This is a partial revert of commit 583b27eabcad6 ("ebtables-save: add -c option, using xtables-style counters") which broke ruleset listing with '--Lc' flag turned on: | # ebtables-nft -L --Lc | Bridge table: filter | | Bridge chain: INPUT, entries: 0, policy: ACCEPT | | Bridge chain: FORWARD, entries: 2, policy: ACCEPT | -j foo | , pcnt = 0 -- bcnt = 0-j ACCEPT | , pcnt = 0 -- bcnt = 0 | Bridge chain: OUTPUT, entries: 0, policy: ACCEPT | | Bridge chain: foo, entries: 1, policy: RETURN | -j ACCEPT | , pcnt = 0 -- bcnt = 0% (That percentage sign means no newline after last line of output and doesn't belong to ebtables-nft's output.) Problem was that nft_bridge_print_rule() printed the counters after nft_bridge_save_rule() had already printed the newline character. Note also that there is no need to remove FMT_EBT_SAVE bit from 'format' variable: It is set only by ebtables-nft-save which doesn't call nft_bridge_print_rule(). Fixes: 583b27eabcad6 ("ebtables-save: add -c option, using xtables-style counters") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libipt_ttl.txlate')
0 files changed, 0 insertions, 0 deletions