aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:29 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:18 -0400
commit7cf06bc6ff810178a7fb9f12aaa6b274fc520f6f (patch)
treed2155e204af6153174f9a7f37596c21e04c65ddb /net/batman-adv/gateway_client.h
parent08adf1512298201a53b88bb0a3d67e0dbbe0ed9b (diff)
batman-adv: Prefix gateway-client non-static functions with batadv_
batman-adv can be compiled as part of the kernel instead of an module. In that case the linker will see all non-static symbols of batman-adv and all other non-static symbols of the kernel. This could lead to symbol collisions. A prefix for the batman-adv symbols that defines their private namespace avoids such a problem. Reported-by: David Miller <davem@davemloft.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r--net/batman-adv/gateway_client.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h
index bf56a5aea10b..2c2446f3f124 100644
--- a/net/batman-adv/gateway_client.h
+++ b/net/batman-adv/gateway_client.h
@@ -22,17 +22,19 @@
22#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ 22#ifndef _NET_BATMAN_ADV_GATEWAY_CLIENT_H_
23#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ 23#define _NET_BATMAN_ADV_GATEWAY_CLIENT_H_
24 24
25void gw_deselect(struct bat_priv *bat_priv); 25void batadv_gw_deselect(struct bat_priv *bat_priv);
26void gw_election(struct bat_priv *bat_priv); 26void batadv_gw_election(struct bat_priv *bat_priv);
27struct orig_node *gw_get_selected_orig(struct bat_priv *bat_priv); 27struct orig_node *batadv_gw_get_selected_orig(struct bat_priv *bat_priv);
28void gw_check_election(struct bat_priv *bat_priv, struct orig_node *orig_node); 28void batadv_gw_check_election(struct bat_priv *bat_priv,
29void gw_node_update(struct bat_priv *bat_priv, 29 struct orig_node *orig_node);
30 struct orig_node *orig_node, uint8_t new_gwflags); 30void batadv_gw_node_update(struct bat_priv *bat_priv,
31void gw_node_delete(struct bat_priv *bat_priv, struct orig_node *orig_node); 31 struct orig_node *orig_node, uint8_t new_gwflags);
32void gw_node_purge(struct bat_priv *bat_priv); 32void batadv_gw_node_delete(struct bat_priv *bat_priv,
33int gw_client_seq_print_text(struct seq_file *seq, void *offset); 33 struct orig_node *orig_node);
34bool gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len); 34void batadv_gw_node_purge(struct bat_priv *bat_priv);
35bool gw_out_of_range(struct bat_priv *bat_priv, 35int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset);
36 struct sk_buff *skb, struct ethhdr *ethhdr); 36bool batadv_gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len);
37bool batadv_gw_out_of_range(struct bat_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_ */