extensions: libxt_mac: Fix for missing space in listing
Phil Sutter
reviewerPATCH 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.
Reported-by Adam Wójcik <[email protected]>
Fixes 1bdb5535f561a ("libxtables: Extend MAC address printing/parsing support")
Signed-off-by Phil Sutter <[email protected]>
--- extensions/libxt_mac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
extensions/libxt_mac.c +2 -2
@@ -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