diff options
author | Antonio Quartulli <a@unstable.cc> | 2016-07-03 12:46:33 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-08-09 07:54:29 +0200 |
commit | 34d99cfefaac596adfe9b69f5e7c2cd291af2334 (patch) | |
tree | 3499da74782f91678e0601f61512e3fbfa05a6f5 /net/batman-adv/gateway_client.h | |
parent | 086869438a73d8213a3f945da6679a548badbabc (diff) | |
download | linux-stable-34d99cfefaac596adfe9b69f5e7c2cd291af2334.tar.gz linux-stable-34d99cfefaac596adfe9b69f5e7c2cd291af2334.tar.bz2 linux-stable-34d99cfefaac596adfe9b69f5e7c2cd291af2334.zip |
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>
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r-- | net/batman-adv/gateway_client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h index 582dd8c413c8..4c9edde48914 100644 --- a/net/batman-adv/gateway_client.h +++ b/net/batman-adv/gateway_client.h @@ -39,6 +39,9 @@ void batadv_gw_node_update(struct batadv_priv *bat_priv, void batadv_gw_node_delete(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node); void batadv_gw_node_free(struct batadv_priv *bat_priv); +void batadv_gw_node_put(struct batadv_gw_node *gw_node); +struct batadv_gw_node * +batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv); int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset); bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, struct sk_buff *skb); enum batadv_dhcp_recipient |