Mao Wenan
2019-Mar-20 02:06 UTC
[Bridge] [PATCH net-next] 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 at huawei.com> --- net/bridge/br_multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1
David Miller
2019-Mar-20 18:05 UTC
[Bridge] [PATCH net-next] net: bridge: use eth_broadcast_addr() to assign broadcast address
From: Mao Wenan <maowenan at huawei.com> Date: Wed, 20 Mar 2019 10:06:57 +0800> This patch is to use eth_broadcast_addr() to assign broadcast address > insetad of memset(). > > Signed-off-by: Mao Wenan <maowenan at huawei.com>Applied.