]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Only flood unregistered groups to routers
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2011 02:39:12 +0000 (02:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jun 2011 00:52:51 +0000 (17:52 -0700)
commit35887197e51774e9d18677ed0e48c93e80aba35b
tree462be6140e8ef35ae3797d31d365df08b01f9b16
parentfc835787490007cdfbf6c3eead5b659beef74025
bridge: Only flood unregistered groups to routers

The bridge currently floods packets to groups that we have never
seen before to all ports.  This is not required by RFC4541 and
in fact it is not desirable in environment where traffic to
unregistered group is always present.

This patch changes the behaviour so that we only send traffic
to unregistered groups to ports marked as routers.

The user can always force flooding behaviour to any given port
by marking it as a router.

Note that this change does not apply to traffic to 224.0.0.X
as traffic to those groups must always be flooded to all ports.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c