From mboxrd@z Thu Jan 1 00:00:00 1970 Sender: Cyrill Gorcunov Message-Id: <20090511125350.555985895@openvz.org> Date: Mon, 11 May 2009 15:46:40 +0400 From: Cyrill Gorcunov References: <20090511114639.440944109@openvz.org> Content-Disposition: inline; filename=net-br-use-is_multicast Subject: [Bridge] [RFC 1/5] net: bridge - use is_multicast_ether_addr helper List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stephen Hemminger Cc: Cyrill Gorcunov , netdev@vger.kernel.org, bridge@lists.linux-foundation.org, davem@davemloft.net, xemul@openvz.org Instead of handwritten constrcution it's better to use is_multicast_ether_addr. Signed-off-by: Cyrill Gorcunov --- net/bridge/br_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.git/net/bridge/br_device.c ===================================================================== --- linux-2.6.git.orig/net/bridge/br_device.c +++ linux-2.6.git/net/bridge/br_device.c @@ -32,7 +32,7 @@ int br_dev_xmit(struct sk_buff *skb, str skb_reset_mac_header(skb); skb_pull(skb, ETH_HLEN); - if (dest[0] & 1) + if (is_multicast_ether_addr(dest)) br_flood_deliver(br, skb); else if ((dst = __br_fdb_get(br, dest)) != NULL) br_deliver(dst->dst, skb);