Thread (5 messages) 5 messages, 4 authors, 2017-01-24

Re: [PATCH net-next v5] bridge: multicast to unicast

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-01-24 18:10:53
Also in: bridge, lkml, netdev

On Sat, 21 Jan 2017 21:01:32 +0100
Linus L=C3=BCssing [off-list ref] wrote:
quoted hunk ↗ jump to hunk
@@ -726,12 +729,32 @@ struct net_bridge_port_group *br_multicast_new_port=
_group(
 	hlist_add_head(&p->mglist, &port->mglist);
 	setup_timer(&p->timer, br_multicast_port_group_expired,
 		    (unsigned long)p);
+
+	if (src)
+		memcpy(p->eth_addr, src, ETH_ALEN);
+	else
+		memset(p->eth_addr, 0xff, ETH_ALEN);
+
 	return p;
 }
Maybe use ether_addr_copy here, but is not performance critical
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help