summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_mac.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-08-30 23:48:54 +0200
committerPhil Sutter <phil@nwl.cc>2021-08-31 02:17:59 +0200
commitcf410aa6604d92faf2a2a5051ec18b7d9482e752 (patch)
tree3c7bcc6131e041fb687cbeb360d975fda9a81803 /extensions/libxt_mac.c
parent7ae14dc1a938fc158aaa1761b4fba57c5f1ab7a0 (diff)
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. Reported-by: Adam Wójcik <a.wojcik@hyp.home.pl> Fixes: 1bdb5535f561a ("libxtables: Extend MAC address printing/parsing support") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions/libxt_mac.c')
-rw-r--r--extensions/libxt_mac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_mac.c b/extensions/libxt_mac.c
index b90eef20..55891b2b 100644
--- a/extensions/libxt_mac.c
+++ b/extensions/libxt_mac.c
@@ -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);
}