diff options
author | Antonio Quartulli <a@unstable.cc> | 2016-07-03 12:46:34 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-08-09 07:54:30 +0200 |
commit | 50164d8f500f1cd211178f7b3d062987d68fe013 (patch) | |
tree | 68adc6e26dd6a457161bdab8d9a06a18aaf15bea /net/batman-adv/gateway_client.c | |
parent | 34d99cfefaac596adfe9b69f5e7c2cd291af2334 (diff) | |
download | linux-stable-50164d8f500f1cd211178f7b3d062987d68fe013.tar.gz linux-stable-50164d8f500f1cd211178f7b3d062987d68fe013.tar.bz2 linux-stable-50164d8f500f1cd211178f7b3d062987d68fe013.zip |
batman-adv: B.A.T.M.A.N. V - implement GW selection logic
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>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index ec363f39b6a9..a77a17939f1e 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/gateway_client.c @@ -360,9 +360,8 @@ static void batadv_gw_node_add(struct batadv_priv *bat_priv, * * Return: gateway node if found or NULL otherwise. */ -static struct batadv_gw_node * -batadv_gw_node_get(struct batadv_priv *bat_priv, - struct batadv_orig_node *orig_node) +struct batadv_gw_node *batadv_gw_node_get(struct batadv_priv *bat_priv, + struct batadv_orig_node *orig_node) { struct batadv_gw_node *gw_node_tmp, *gw_node = NULL; |