bridge: Always flood broadcast packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Jul 2011 13:58:33 +0000 (13:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2011 01:39:39 +0000 (18:39 -0700)
commit44661462ee1ee3c922754fc1f246867f0d01e7ea
treee0a040be7f73d3929d45e975ca0eef7025f8f93f
parent9b9cfe7cf663c16c0d93349cc0094bb28ae7135a
bridge: Always flood broadcast packets

As is_multicast_ether_addr returns true on broadcast packets as
well, we need to explicitly exclude broadcast packets so that
they're always flooded.  This wasn't an issue before as broadcast
packets were considered to be an unregistered multicast group,
which were always flooded.  However, as we now only flood such
packets to router ports, this is no longer acceptable.

Reported-by: Michael Guntsche <mike@it-loops.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c
net/bridge/br_input.c