[Bridge] [PATCH net-next v5] bridge: multicast to unicast
Stephen Hemminger
stephen at networkplumber.org
Tue Jan 24 18:12:15 UTC 2017
On Sat, 21 Jan 2017 21:01:32 +0100
Linus Lüssing <linus.luessing at c0d3.blue> 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.
More information about the Bridge
mailing list