bridge: use ipv4_is_local_multicast() helper
authorAmerigo Wang <amwang@redhat.com>
Thu, 7 Mar 2013 02:32:26 +0000 (02:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Mar 2013 21:29:53 +0000 (16:29 -0500)
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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;
        }