summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/iptables/0001-chain-refs_0
Commit message (Collapse)AuthorAgeFilesLines
* xtables: Do not count rules as chain referencesPhil Sutter2018-08-041-0/+14
Unlike iptables, nftables counts rules in a chain as references to that chain. Align output of 'iptables-nft -L' with that of legacy iptables by counting the number of rules in a chain and subtracting that value from reference count before printing the chain header. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>