]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: use the proper header len when checking the TTVN
authorAntonio Quartulli <antonio@open-mesh.com>
Wed, 3 Apr 2013 08:14:20 +0000 (10:14 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 22 Apr 2013 07:55:23 +0000 (09:55 +0200)
commit4aa5226daf4af228bec1965913fb9e40cd9656f2
tree7d055170b75f69c210ed0de8577c39b4b3dc30c7
parent703672083ec5dcd1f437e1daaee90f8eb03563a0
batman-adv: use the proper header len when checking the TTVN

Unicast packet might be of type either UNICAST or
UNICAST4ADDR.
In the two cases the header size is different, but the
mechanism checking the TTVN field was assuming it to be
always of the same type (UNICAST), so failing to access the
inner Ethernet header in case of UNICAST4ADDR.

Fix this by passing the real header length as argument.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/routing.c