]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: check incoming packet type for bla
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 4 Jul 2012 18:38:19 +0000 (20:38 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 5 Jul 2012 22:08:46 +0000 (00:08 +0200)
commitcdb919e4434d021c825e49a6cad226dcb8138e1b
tree266d06843fa025def68bc00f56ab5912247f15cc
parentbd6393f958b659df9cfae540d6e83062c7713ee6
batman-adv: check incoming packet type for bla

If the gateway functionality is used, some broadcast packets (DHCP
requests) may be transmitted as unicast packets. As the bridge loop
avoidance code now only considers the payload Ethernet destination,
it may drop the DHCP request for clients which are claimed by other
backbone gateways, because it falsely infers from the broadcast address
that the right backbone gateway should havehandled the broadcast.

Fix this by checking and delegating the batman-adv packet type used
for transmission.

Reported-by: Guido Iribarren <guidoiribarren@buenosaireslibre.org>
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/bridge_loop_avoidance.h
net/batman-adv/soft-interface.c