aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r--net/batman-adv/gateway_client.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h
index bf56a5aea10b..f0d129e323c8 100644
--- a/net/batman-adv/gateway_client.h
+++ b/net/batman-adv/gateway_client.h
@@ -1,5 +1,4 @@
1/* 1/* Copyright (C) 2009-2012 B.A.T.M.A.N. contributors:
2 * Copyright (C) 2009-2012 B.A.T.M.A.N. contributors:
3 * 2 *
4 * Marek Lindner 3 * Marek Lindner
5 * 4 *
@@ -16,23 +15,26 @@
16 * along with this program; if not, write to the Free Software 15 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301, USA 17 * 02110-1301, USA
19 *
20 */ 18 */
21 19
22#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ 20#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_
23#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ 21#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_
24 22
25void gw_deselect(struct bat_priv *bat_priv); 23void batadv_gw_deselect(struct batadv_priv *bat_priv);
26void gw_election(struct bat_priv *bat_priv); 24void batadv_gw_election(struct batadv_priv *bat_priv);
27struct orig_node *gw_get_selected_orig(struct bat_priv *bat_priv); 25struct batadv_orig_node *
28void gw_check_election(struct bat_priv *bat_priv, struct orig_node *orig_node); 26batadv_gw_get_selected_orig(struct batadv_priv *bat_priv);
29void gw_node_update(struct bat_priv *bat_priv, 27void batadv_gw_check_election(struct batadv_priv *bat_priv,
30 struct orig_node *orig_node, uint8_t new_gwflags); 28 struct batadv_orig_node *orig_node);
31void gw_node_delete(struct bat_priv *bat_priv, struct orig_node *orig_node); 29void batadv_gw_node_update(struct batadv_priv *bat_priv,
32void gw_node_purge(struct bat_priv *bat_priv); 30 struct batadv_orig_node *orig_node,
33int gw_client_seq_print_text(struct seq_file *seq, void *offset); 31 uint8_t new_gwflags);
34bool gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len); 32void batadv_gw_node_delete(struct batadv_priv *bat_priv,
35bool gw_out_of_range(struct bat_priv *bat_priv, 33 struct batadv_orig_node *orig_node);
36 struct sk_buff *skb, struct ethhdr *ethhdr); 34void batadv_gw_node_purge(struct batadv_priv *bat_priv);
35int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset);
36bool batadv_gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len);
37bool batadv_gw_out_of_range(struct batadv_priv *bat_priv,
38 struct sk_buff *skb, struct ethhdr *ethhdr);
37 39
38#endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */ 40#endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */