macvlan: broadcast addr should be part of mc_filter

commit cd431e7385 (macvlan: add multicast filter) forgot
the broadcast case.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Maciej Żenczykowski <maze@google.com>
SIgned-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2013-02-07 16:02:57 +00:00 коммит произвёл David S. Miller
Родитель 6a98dcf032
Коммит d527043040
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -426,6 +426,9 @@ static void macvlan_set_mac_lists(struct net_device *dev)
netdev_for_each_mc_addr(ha, dev) { netdev_for_each_mc_addr(ha, dev) {
__set_bit(mc_hash(ha->addr), filter); __set_bit(mc_hash(ha->addr), filter);
} }
__set_bit(mc_hash(dev->broadcast), filter);
bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ); bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ);
} }
dev_uc_sync(vlan->lowerdev, dev); dev_uc_sync(vlan->lowerdev, dev);