]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit2d3f6ccc4ea5c74d4b4af1b47c56b4cff4bbfcb7
tree266d06843fa025def68bc00f56ab5912247f15cc
parent9e85a6f9dc231f3ed3c1dc1b12217505d970142a
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