summaryrefslogtreecommitdiffstats
path: root/iptables/nft-arp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-02 17:05:26 +0200
committerFlorian Westphal <fw@strlen.de>2018-08-04 14:59:58 +0200
commit3ec8aac5caa0acf0b4752089d731dcbd4e60174c (patch)
treed520de59e1e229c6429c7dfd07b611d4cd619bd5 /iptables/nft-arp.c
parent83bc1890aa939108fd06b80f35139fedd5856cbc (diff)
arptables: Print policy only for base chains
Printing a policy for user-defined chains is pointless. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r--iptables/nft-arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index 328c791d..5cabb93e 100644
--- a/iptables/nft-arp.c
+++ b/iptables/nft-arp.c
@@ -421,7 +421,7 @@ static void nft_arp_print_header(unsigned int format, const char *chain,
bool basechain, uint32_t refs)
{
printf("Chain %s", chain);
- if (pol) {
+ if (basechain && pol) {
printf(" (policy %s", pol);
if (!(format & FMT_NOCOUNTS)) {
fputc(' ', stdout);