From 3ec8aac5caa0acf0b4752089d731dcbd4e60174c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 2 Aug 2018 17:05:26 +0200 Subject: arptables: Print policy only for base chains Printing a policy for user-defined chains is pointless. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft-arp.c') 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); -- cgit v1.2.3