]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix skbuff rcsum on packet reroute
authorSven Eckelmann <sven@narfation.org>
Fri, 16 Mar 2018 20:14:32 +0000 (21:14 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 18 Mar 2018 12:20:32 +0000 (13:20 +0100)
commita27e272e4cb0aa5f3b5586095722f3b1ab4fdd11
treec3c3ecd92e3d9e03973f3ab68a3522bbdf252332
parent825cd630a7def763ac87eaa2ea429c7e5c868d2e
batman-adv: Fix skbuff rcsum on packet reroute

batadv_check_unicast_ttvn may redirect a packet to itself or another
originator. This involves rewriting the ttvn and the destination address in
the batadv unicast header. These field were not yet pulled (with skb rcsum
update) and thus any change to them also requires a change in the receive
checksum.

Reported-by: Matthias Schiffer <mschiffer@universe-factory.net>
Fixes: 00792168d2d6 ("batman-adv: improved client announcement mechanism")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/routing.c