]> git.karo-electronics.de Git - linux-beck.git/commit
batman-adv: Fix broadcast packet CRC calculation
authorLinus Lüssing <linus.luessing@web.de>
Wed, 17 Oct 2012 12:53:04 +0000 (14:53 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 18 Oct 2012 16:14:57 +0000 (18:14 +0200)
commit7f112af40fecf5399b61e69ffc6b55a9d82789f7
tree018c3d158fc6e20eff819ca63f03bc3cb84cc006
parent43c422eda99b894f18d1cca17bcd2401efaf7bd0
batman-adv: Fix broadcast packet CRC calculation

So far the crc16 checksum for a batman-adv broadcast data packet, received
on a batman-adv hard interface, was calculated over zero bytes of its
content leading to many incoming broadcast data packets wrongly being
dropped (60-80% packet loss).

This patch fixes this issue by calculating the crc16 over the actual,
complete broadcast payload.

The issue is a regression introduced by
("batman-adv: add broadcast duplicate check").

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/routing.c