]> 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)
commitac92c85de8f8fed0ecaf8eedab172643c8586eb9
treec3c3ecd92e3d9e03973f3ab68a3522bbdf252332
parent052949e216d9a821f8b848bbf15fc16e748ba88b
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: 81eee4f2876f ("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