On Thursday, October 18, 2012 19:47:42 Simon Wunderlich wrote:
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
PATCHv2: change uint32_t to __be32 PATCHv3: this time also changed in types.h PATCHv4: also compile if bla is disabled
bridge_loop_avoidance.c | 18 +++++++----------- bridge_loop_avoidance.h | 6 ++---- routing.c | 10 +++------- types.h | 2 +- 4 files changed, 13 insertions(+), 23 deletions(-)
Applied in revision da14489.
Thanks, Marek