]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: make GW election code protocol specific
authorAntonio Quartulli <a@unstable.cc>
Sun, 3 Jul 2016 10:46:33 +0000 (12:46 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:29 +0000 (07:54 +0200)
commit299ffc8133c6f64c2b82da0f670bc6663b403e53
tree3499da74782f91678e0601f61512e3fbfa05a6f5
parent3cfae9961e1457cd71adf43c154492335a4b87bb
batman-adv: make GW election code protocol specific

Each routing protocol may have its own specific logic about
gateway election which is potentially based on the metric being
used.

Create two GW specific API functions and move the current election
logic in the B.A.T.M.A.N. IV specific code.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/gateway_client.c
net/batman-adv/gateway_client.h
net/batman-adv/gateway_common.c
net/batman-adv/types.h