Files
linux-stable-mirror/net
Sven EckelmannandGreg Kroah-Hartman cb01fe90e8 batman-adv: tp_meter: handle seqno wrap-around for fast recovery detection
commit f54c85ed42 upstream.

The recover variable and the last_sent sequence number are initialized on
purpose as a really high value which will wrap-around after the first 2000
bytes. The fast recovery precondition must therefore not use simple integer
comparisons but use helpers which are aware of the sequence number
wrap-arounds.

Cc: stable@kernel.org
Fixes: 33a3bb4a33 ("batman-adv: throughput meter implementation")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-07-04 13:41:30 +02:00
..
2026-06-19 13:36:54 +02:00
2026-06-19 13:37:26 +02:00