From 73a0c2ef36d15e8277f0e00337736668b325381a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 15 Feb 2019 15:27:43 +0100 Subject: arptables: Print space before comma and counters Legacy arptables separates counters from rest of rule by ' , '. Assuming that scripts scraping 'arptables -vL' output match on this, make arptables-nft output conformant. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- 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 637da427..a3715579 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -617,7 +617,7 @@ nft_arp_print_rule(struct nftnl_rule *r, unsigned int num, unsigned int format) print_matches_and_target(&cs, format); if (!(format & FMT_NOCOUNTS)) { - printf(", pcnt="); + printf(" , pcnt="); xtables_print_num(cs.counters.pcnt, format | FMT_NOTABLE); printf("-- bcnt="); xtables_print_num(cs.counters.bcnt, format | FMT_NOTABLE); -- cgit v1.2.3