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)
commit34d99cfefaac596adfe9b69f5e7c2cd291af2334
tree3499da74782f91678e0601f61512e3fbfa05a6f5
parent086869438a73d8213a3f945da6679a548badbabc
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