On Sunday, July 03, 2016 12:46:34 Sven Eckelmann wrote:
From: Antonio Quartulli a@unstable.cc
Since the GW selection logic has been made routing protocol specific it is now possible for B.A.T.M.A.N V to have its own mechanism by providing the API implementation.
Implement the GW specific API in the B.A.T.M.A.N. V protocol in order to provide a working GW selection mechanism.
Signed-off-by: Antonio Quartulli a@unstable.cc Signed-off-by: Sven Eckelmann sven@narfation.org
v6:
- remove comment for get_best_gw_node in batadv_gw_election (added to patch 2)
- fix possible integer overflow in batadv_v_gw_is_eligible when comparing current gw throughput (+threshold) against throughput of potential new gateway
- use seq_puts in batadv_v_gw_print
net/batman-adv/bat_v.c | 223 +++++++++++++++++++++++++++++++++++++++- net/batman-adv/gateway_client.c | 5 +- net/batman-adv/gateway_client.h | 2 + 3 files changed, 226 insertions(+), 4 deletions(-)
Applied in revision 80b2d47.
Thanks, Marek