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)
commitfc04fdb2c8a894283259f5621d31d75610701091
treec3c3ecd92e3d9e03973f3ab68a3522bbdf252332
parent48881ed56b395bdf2cff6c102039016223ca4da6
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: a73105b8d4c7 ("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