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:12:33
Also in: bridge, linux-wireless, lkml

On Sat, 21 Jan 2017 21:01:32 +0100
Linus Lüssing [off-list ref] wrote:
+static bool br_port_group_equal(struct net_bridge_port_group *p,
+				struct net_bridge_port *port,
+				const unsigned char *src)
+{
+	if (p->port != port)
+		return false;
+
+	if (!(port->flags & BR_MULTICAST_TO_UNICAST))
+		return true;
+
+	return ether_addr_equal(src, p->eth_addr);
+}
+
I prefer that argument to functions like this be const.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help