diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-13 14:43:28 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-13 20:05:51 +0200 |
commit | 3063c3799b03b967615d90f955a94c9baab96779 (patch) | |
tree | 11f73c594c09b936e6fed48480314454ef9dd16f /iptables/nft-bridge.c | |
parent | 394a40030332568c8654d6960aa6f851bac9149d (diff) |
nft-bridge: fix mac address printing
Mask needs to be all-ones, else we print
<macaddr>/ff:ff:ff:ff:ff:ff
but such a mask is redundant, we can omit the mask.
ebtables does this correctly.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-bridge.c')
-rw-r--r-- | iptables/nft-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index 22940cf7..04567a1f 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -57,7 +57,7 @@ static void ebt_print_mac(const unsigned char *mac) /* Put the mac address into 6 (ETH_ALEN) bytes returns 0 on success. */ static void ebt_print_mac_and_mask(const unsigned char *mac, const unsigned char *mask) { - char hlpmsk[6] = {}; + char hlpmsk[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; if (!memcmp(mac, eb_mac_type_unicast, 6) && !memcmp(mask, eb_msk_type_unicast, 6)) |