Skip to contentSkip to conversation

bridge: use ipv4_is_local_multicast() helper

PATCH Applied Cong Wang 2 participants 2 messages Mar 7, 2013

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 bridge: use ipv4_is_local_multicast() helper

Cc Stephen Hemminger <[email protected]>
Cc "David S. Miller" <[email protected]>

---

net/bridge/br_multicast.c +1 -1
index 10e6fce..81d51b8 100644
@@ -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;
 	}