batman-adv: Fix broadcast duplist for fragmentation
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Thu, 18 Oct 2012 11:47:42 +0000 (13:47 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 21 Nov 2012 11:35:45 +0000 (12:35 +0100)
If the skb is fragmented, the checksum must be computed on the
individual fragments, just using skb->data may fail on fragmented
data. Instead of doing linearizing the packet, use the new
batadv_crc32 to do that more efficiently- it should not hurt
replacing the old crc16 by the new crc32.

Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/bridge_loop_avoidance.h
net/batman-adv/routing.c
net/batman-adv/types.h

Simple merge
Simple merge