batman-adv: Modified forwarding behaviour for multicast packets
authorLinus Lüssing <linus.luessing@web.de>
Sat, 15 Feb 2014 16:47:52 +0000 (17:47 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 22 Mar 2014 08:18:57 +0000 (09:18 +0100)
commit1d8ab8d3c176d31530b3ffd4547cf731018e2a45
treeb62208972cdfb70a853ff5177c29154fd165bea7
parent60432d756cf06e597ef9da511402dd059b112447
batman-adv: Modified forwarding behaviour for multicast packets

With this patch a multicast packet is not always simply flooded anymore,
the behaviour for the following cases is changed to reduce
unnecessary overhead:

If all nodes within the horizon of a certain node have signalized
multicast listener announcement capability then an IPv6 multicast packet
with a destination of IPv6 link-local scope (excluding ff02::1) coming
from the upstream of this node...

* ...is dropped if there is no according multicast listener in the
  translation table,
* ...is forwarded via unicast if there is a single node with interested
  multicast listeners
* ...and otherwise still gets flooded.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Documentation/ABI/testing/sysfs-class-net-mesh
net/batman-adv/multicast.c
net/batman-adv/multicast.h
net/batman-adv/send.c
net/batman-adv/send.h
net/batman-adv/soft-interface.c
net/batman-adv/sysfs.c
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h
net/batman-adv/types.h