On Sunday, July 03, 2016 12:46:33 Sven Eckelmann wrote:
From: Antonio Quartulli a@unstable.cc
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
v6:
- added "(optional)" to the kerneldoc of get_best_gw_node, is_eligible
- use seq_puts in batadv_iv_gw_print
- add comment for get_best_gw_node in batadv_gw_election (removed from patch 3)
net/batman-adv/bat_iv_ogm.c | 219 ++++++++++++++++++++++++++++++++++++++++ net/batman-adv/gateway_client.c | 217 +++++---------------------------------- net/batman-adv/gateway_client.h | 3 + net/batman-adv/gateway_common.c | 5 +- net/batman-adv/types.h | 11 ++ 5 files changed, 263 insertions(+), 192 deletions(-)
Applied in revision 7d94776.
Thanks, Marek