batman-adv: Use actual packet count for aggregated packets
authorSven Eckelmann <sven@narfation.org>
Sun, 2 Feb 2025 16:04:12 +0000 (17:04 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 22 Feb 2025 10:36:25 +0000 (11:36 +0100)
commit0db110059e7900c3c197281e2ed11ff08484e3ed
tree9c5424f7c7c970d4fd0d45f4dce1558af855260c
parent77405977f1872249cb2bea69214c6b779dc06065
batman-adv: Use actual packet count for aggregated packets

The batadv_forw_packet->num_packets didn't store the number of packets but
the the number of packets - 1. This didn't had any effects on the actual
handling of aggregates but can easily be a source of confusion when reading
the code.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/send.c