bridge: use ipv4_is_local_multicast() helper
Subsystems (3)
PATCH 1/1 bridge: use ipv4_is_local_multicast() helper
Cc Stephen Hemminger <[email protected]>
Cc "David S. Miller" <[email protected]>
Signed-off-by Cong Wang <[email protected]>
---
net/bridge/br_multicast.c +1 -1
@@ -1368,7 +1368,7 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br,return -EINVAL ;if (iph->protocol !=IPPROTO_IGMP ) { -if ((iph->daddr &IGMP_LOCAL_GROUP_MASK ) !=IGMP_LOCAL_GROUP ) +if (!ipv4_is_local_multicast (iph->daddr))BR_INPUT_SKB_CB (skb)->mrouters_only =1 ;return 0 ; }
From: Cong Wang <[email protected]>
Date: Thu, 7 Mar 2013 20:32:26 +0800
Quoted 3 lines
Cc Stephen Hemminger <[email protected]>Cc "David S. Miller" <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied, thanks.