* [Patch net-next] bridge: use ipv4_is_local_multicast() helper
@ 2013-03-07 12:32 Cong Wang
2013-03-07 21:30 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Cong Wang @ 2013-03-07 12:32 UTC (permalink / raw)
To: netdev; +Cc: Stephen Hemminger, David S. Miller, Cong Wang
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
---
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 10e6fce..81d51b8 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,
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;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Patch net-next] bridge: use ipv4_is_local_multicast() helper
2013-03-07 12:32 [Patch net-next] bridge: use ipv4_is_local_multicast() helper Cong Wang
@ 2013-03-07 21:30 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-07 21:30 UTC (permalink / raw)
To: amwang; +Cc: netdev, stephen
From: Cong Wang <amwang@redhat.com>
Date: Thu, 7 Mar 2013 20:32:26 +0800
> Cc: Stephen Hemminger <stephen@networkplumber.org>
> Cc: "David S. Miller" <davem@davemloft.net>
> Signed-off-by: Cong Wang <amwang@redhat.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-07 21:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07 12:32 [Patch net-next] bridge: use ipv4_is_local_multicast() helper Cong Wang
2013-03-07 21:30 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.