diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-03-20 10:06:57 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-20 11:02:47 -0700 |
commit | 1bfe45f4ae81dc961b4bcb2ce6860c4ee1af621a (patch) | |
tree | 8d0823a8e4884fb79672ddc600ff470103edf703 /net | |
parent | f295b3ae9f5927e084bd5decdff82390e3471801 (diff) | |
download | linux-1bfe45f4ae81dc961b4bcb2ce6860c4ee1af621a.tar.bz2 |
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')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
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; } |