]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bridge: Add multicast forwarding functions
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Feb 2010 19:41:46 +0000 (19:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Feb 2010 08:48:45 +0000 (00:48 -0800)
commit5cb5e947d8f82011e3d7e7017e9d10db9a40ae9f
tree126e3b2112f780120bf9e95c67fdb1b81e73c314
parenteb1d16414339a6e113d89e2cca2556005d7ce919
bridge: Add multicast forwarding functions

This patch adds code to perform selective multicast forwarding.

We forward multicast traffic to a set of ports plus all multicast
router ports.  In order to avoid duplications among these two
sets of ports, we order all ports by the numeric value of their
pointers.  The two lists are then walked in lock-step to eliminate
duplicates.

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