Skip to contentSkip to conversation

extensions: libxt_mac: Fix for missing space in listing

PATCH New Phil Sutter 1 participant 1 message Aug 30, 2021 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 extensions: libxt_mac: Fix for missing space in listing

Listing the extension using 'iptables -L', there was no space between 'MAC' and the following Address.

Fixes 1bdb5535f561a ("libxtables: Extend MAC address printing/parsing support")
---
 extensions/libxt_mac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
extensions/libxt_mac.c +2 -2
index b90eef207c98e..55891b2be7104 100644
@@ -42,10 +42,10 @@ mac_print(const void *ip, const struct xt_entry_match *match, int numeric)
 {
 	const struct xt_mac_info *info = (void *)match->data;
 
-	printf(" MAC");
+	printf(" MAC ");
 
 	if (info->invert)
-		printf(" !");
+		printf("! ");
 
 	xtables_print_mac(info->srcaddr);
 }
Signature · 1 line
2.32.0