bridge: add export of multicast database adjacent to net_dev
authorLinus Lüssing <linus.luessing@web.de>
Sat, 7 Jun 2014 16:26:28 +0000 (18:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 06:50:47 +0000 (23:50 -0700)
commit07f8ac4a1e26e8283542cdaf658a6e2a12fd6980
tree767bc394b56374b576feb4da5ff38808428c0857
parentdc4eb53a996a78bfb8ea07b47423ff5a3aadc362
bridge: add export of multicast database adjacent to net_dev

With this new, exported function br_multicast_list_adjacent(net_dev) a
list of IPv4/6 addresses is returned. This list contains all multicast
addresses sensed by the bridge multicast snooping feature on all bridge
ports of the bridge interface of net_dev, excluding addresses from the
specified net_device itself.

Adding bridge support to the batman-adv multicast optimization requires
batman-adv knowing about the existence of bridged-in multicast
listeners to be able to reliably serve them with multicast packets.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
net/bridge/br_multicast.c
net/bridge/br_private.h