diff options
author | Amerigo Wang <amwang@redhat.com> | 2013-03-06 21:32:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-07 16:29:53 -0500 |
commit | bf5e4dd6b26058d1a31864ea1a7002172023b147 (patch) | |
tree | a9ae1f96ff441f08d885fda947aace042cdf77cd /net/bridge | |
parent | 11e5e76eb4c8fc9763caf4e52e30499bfb4dcf77 (diff) |
bridge: use ipv4_is_local_multicast() helper
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>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 10e6fce1bb62..81d51b859a59 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
@@ -1368,7 +1368,7 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br, | |||
1368 | return -EINVAL; | 1368 | return -EINVAL; |
1369 | 1369 | ||
1370 | if (iph->protocol != IPPROTO_IGMP) { | 1370 | if (iph->protocol != IPPROTO_IGMP) { |
1371 | if ((iph->daddr & IGMP_LOCAL_GROUP_MASK) != IGMP_LOCAL_GROUP) | 1371 | if (!ipv4_is_local_multicast(iph->daddr)) |
1372 | BR_INPUT_SKB_CB(skb)->mrouters_only = 1; | 1372 | BR_INPUT_SKB_CB(skb)->mrouters_only = 1; |
1373 | return 0; | 1373 | return 0; |
1374 | } | 1374 | } |