bridge: use ipv4_is_local_multicast() helper
authorAmerigo Wang <[email protected]>
Thu, 7 Mar 2013 02:32:26 +0000 (02:32 +0000)
committerDavid S. Miller <[email protected]>
Thu, 7 Mar 2013 21:29:53 +0000 (16:29 -0500)
Cc: Stephen Hemminger <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/bridge/br_multicast.c

index 10e6fce1bb62abb0987a98c167bf653356e088ac..81d51b859a594537fc9d18fa6711afa49c52b214 100644 (file)
@@ -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;
        }