summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-03-20 03:06:57 +0100
committerDavid S. Miller <davem@davemloft.net>2019-03-20 19:02:47 +0100
commit1bfe45f4ae81dc961b4bcb2ce6860c4ee1af621a (patch)
tree8d0823a8e4884fb79672ddc600ff470103edf703 /net/bridge
parentnet/tls: Add support of AES128-CCM based ciphers (diff)
downloadlinux-1bfe45f4ae81dc961b4bcb2ce6860c4ee1af621a.tar.xz
linux-1bfe45f4ae81dc961b4bcb2ce6860c4ee1af621a.zip
net: bridge: use eth_broadcast_addr() to assign broadcast address
This patch is to use eth_broadcast_addr() to assign broadcast address insetad of memset(). Signed-off-by: Mao Wenan <maowenan@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_multicast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index a0e369179f6d..b257342c0860 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -517,7 +517,7 @@ struct net_bridge_port_group *br_multicast_new_port_group(
if (src)
memcpy(p->eth_addr, src, ETH_ALEN);
else
- memset(p->eth_addr, 0xff, ETH_ALEN);
+ eth_broadcast_addr(p->eth_addr);
return p;
}