openwrt-routing/batman-adv
Sven Eckelmann e26096ae1d batman-adv: Fix duplicated OGMs on NETDEV_UP
The state of slave interfaces are handled differently depending on whether
the interface is up or not. All active interfaces (IFF_UP) will transmit
OGMs. But for B.A.T.M.A.N. IV, also non-active interfaces are scheduling
(low TTL) OGMs on active interfaces. The code which setups and schedules
the OGMs must therefore already be called when the interfaces gets added as
slave interface and the transmit function must then check whether it has to
send out the OGM or not on the specific slave interface.

But v2016.3 moved the setup code from the enable function to the activate
function. The latter is called either when the added slave was already up
when batadv_hardif_enable_interface processed the new interface or when a
NETDEV_UP event was received for this slave interfac. As result, each
NETDEV_UP would schedule a new OGM worker for the interface and thus OGMs
would be send a lot more than expected.

Fixes: 549909f89d ("batman-adv: upgrade package to latest release 2016.3")
Reported-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-06-02 14:08:16 +02:00
..
files batman-adv: upgrade package to latest release 2019.2 2019-05-23 20:21:54 +02:00
patches batman-adv: Fix duplicated OGMs on NETDEV_UP 2019-06-02 14:08:16 +02:00
src batman-adv: upgrade package to latest release 2019.1 2019-03-28 19:50:25 +01:00
Config.in batman-adv: upgrade package to latest release 2019.2 2019-05-23 20:21:54 +02:00
Makefile batman-adv: Fix duplicated OGMs on NETDEV_UP 2019-06-02 14:08:16 +02:00