Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amerigo Wang and committed by
David S. Miller
bf5e4dd6 11e5e76e

+1 -1
+1 -1
net/bridge/br_multicast.c
··· 1368 1368 return -EINVAL; 1369 1369 1370 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 1372 BR_INPUT_SKB_CB(skb)->mrouters_only = 1; 1373 1373 return 0; 1374 1374 }