]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: mcast: don't send link-local multicast to mcast routers
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sat, 1 Jan 2022 05:27:13 +0000 (06:27 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 2 Jan 2022 08:31:17 +0000 (09:31 +0100)
commit5d8aa4f70c1857f69b72315776aef6753f5be215
treeaf91fc2774265e82b9c76975cb0fca1aa79b921f
parent52ec7d584bc5a42cc3995978c816ff38f58959e7
batman-adv: mcast: don't send link-local multicast to mcast routers

The addition of routable multicast TX handling introduced a
bug/regression for packets with a link-local multicast destination:
These packets would be sent to all batman-adv nodes with a multicast
router and to all batman-adv nodes with an old version without multicast
router detection.

This even disregards the batman-adv multicast fanout setting, which can
potentially lead to an unwanted, high number of unicast transmissions or
even congestion.

Fixing this by avoiding to send link-local multicast packets to nodes in
the multicast router list.

Fixes: bd64fef89c46 ("batman-adv: mcast: apply optimizations for routable packets, too")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/multicast.c
net/batman-adv/multicast.h
net/batman-adv/soft-interface.c