Skip to content

Commit

Permalink
macvlan: broadcast addr should be part of mc_filter
Browse files Browse the repository at this point in the history
commit cd431e7 (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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 8, 2013
1 parent 6a98dcf commit d527043
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ static void macvlan_set_mac_lists(struct net_device *dev)
netdev_for_each_mc_addr(ha, dev) {
__set_bit(mc_hash(ha->addr), filter);
}

__set_bit(mc_hash(dev->broadcast), filter);

bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ);
}
dev_uc_sync(vlan->lowerdev, dev);
Expand Down

0 comments on commit d527043

Please sign in to comment.