]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix speedy join in gateway client mode
authorSven Eckelmann <sven@narfation.org>
Sun, 12 Jun 2016 08:43:19 +0000 (10:43 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Wed, 6 Jul 2016 14:03:40 +0000 (16:03 +0200)
commit9c6681064e5b1beac078dc660931e094f44eaea4
tree9870d588a7ba8d0334e5ca6d929831361e4dade9
parentae9661e7b4500391fef57c8c851227b674933bc6
batman-adv: Fix speedy join in gateway client mode

Speedy join only works when the received packet is either broadcast or an
4addr unicast packet. Thus packets converted from broadcast to unicast via
the gateway handling code have to be converted to 4addr packets to allow
the receiving gateway server to add the sender address as temporary entry
to the translation table.

Not doing it will make the batman-adv gateway server drop the DHCP response
in many situations because it doesn't yet have the TT entry for the
destination of the DHCP response.

Fixes: aa17f22448d5 ("batman-adv: change interface_rx to get orig node")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/send.c