Skip to content

Commit 59f7ea7

Browse files
T-Xsimonwunderlich
authored andcommitted
batman-adv: mcast: fix mcast packet type counter on timeouted nodes
When a node which does not have the new batman-adv multicast packet type capability vanishes then the according, global counter erroneously would not be reduced in response on other nodes. Which in turn leads to the mesh never switching back to sending with the new multicast packet type. Fix this by reducing the according counter when such a node times out. Fixes: 9003913 ("batman-adv: mcast: implement multicast packet generation") Signed-off-by: Linus Lüssing <[email protected]> Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]>
1 parent 6613476 commit 59f7ea7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/batman-adv/multicast.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,8 @@ void batadv_mcast_purge_orig(struct batadv_orig_node *orig)
21982198
BATADV_MCAST_WANT_NO_RTR4);
21992199
batadv_mcast_want_rtr6_update(bat_priv, orig,
22002200
BATADV_MCAST_WANT_NO_RTR6);
2201+
batadv_mcast_have_mc_ptype_update(bat_priv, orig,
2202+
BATADV_MCAST_HAVE_MC_PTYPE_CAPA);
22012203

22022204
spin_unlock_bh(&orig->mcast_handler_lock);
22032205
}

0 commit comments

Comments
 (0)