summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-06-11 22:14:54 +0200
committerSven Eckelmann <sven@narfation.org>2026-06-13 07:57:51 +0200
commit493d9d2528e1a09b090e4b37f0f553def7bd5ce9 (patch)
treebabae8f608ff765cc1df405db7dc0bbfc7ebf63c /tools/lib/python
parentb7293c6e8c15b2db77809b25cf8389e35331b27a (diff)
batman-adv: frag: avoid underflow of TTL
Packets with a TTL are using it to limit the amount of time this packet can be forwarded. But for batadv_frag_packet, the TTL was always only reduced but it was never evaluated. It could even underflow without any effect. Check the TTL in batadv_frag_skb_fwd() before attempting to prepare it for forwarding. This keeps it in sync with the not fragmented unicast packet. Cc: stable@kernel.org Fixes: 610bfc6bc99b ("batman-adv: Receive fragmented packets and merge") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions