batman-adv: fix and simplify condition when bonding should be used
authorSimon Wunderlich <sw@simonwunderlich.de>
Wed, 13 Aug 2014 12:26:56 +0000 (14:26 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Tue, 6 Jan 2015 10:05:07 +0000 (11:05 +0100)
commit329887ad13a3f3d26837ea9fce5a8305a7c983e2
treedaafbc99322eb05a1dc9bd37fe37fe3b2c4bbf46
parent7ce67a38f799d1fb332f672b117efbadedaa5352
batman-adv: fix and simplify condition when bonding should be used

The current condition actually does NOT consider bonding when the
interface the packet came in from is the soft interface, which is the
opposite of what it should do (and the comment describes). Fix that and
slightly simplify the condition.

Reported-by: Ray Gibson <booray@gmail.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/routing.c