aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:36 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:25 -0400
commit30d3c5113f9a3f162d65d01b771b122afac0ce79 (patch)
treeda443b3ff6ddcc0b9ffadd0b0626ac48cb1e8325 /net/batman-adv/routing.h
parent925a6672fae532ba178b8d35686705b417aada3d (diff)
batman-adv: Prefix routing 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/routing.h')
-rw-r--r--net/batman-adv/routing.h52
1 files changed, 27 insertions, 25 deletions
diff --git a/net/batman-adv/routing.h b/net/batman-adv/routing.h
index d6bbbebb6567..4652f0c147f5 100644
--- a/net/batman-adv/routing.h
+++ b/net/batman-adv/routing.h
@@ -22,30 +22,32 @@
22#ifndef _NET_BATMAN_ADV_ROUTING_H_ 22#ifndef _NET_BATMAN_ADV_ROUTING_H_
23#define _NET_BATMAN_ADV_ROUTING_H_ 23#define _NET_BATMAN_ADV_ROUTING_H_
24 24
25void slide_own_bcast_window(struct hard_iface *hard_iface); 25void batadv_slide_own_bcast_window(struct hard_iface *hard_iface);
26bool check_management_packet(struct sk_buff *skb, 26bool batadv_check_management_packet(struct sk_buff *skb,
27 struct hard_iface *hard_iface, 27 struct hard_iface *hard_iface,
28 int header_len); 28 int header_len);
29void update_route(struct bat_priv *bat_priv, struct orig_node *orig_node, 29void batadv_update_route(struct bat_priv *bat_priv, struct orig_node *orig_node,
30 struct neigh_node *neigh_node); 30 struct neigh_node *neigh_node);
31int recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if); 31int batadv_recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if);
32int recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if); 32int batadv_recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if);
33int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if); 33int batadv_recv_ucast_frag_packet(struct sk_buff *skb,
34int recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if); 34 struct hard_iface *recv_if);
35int recv_vis_packet(struct sk_buff *skb, struct hard_iface *recv_if); 35int batadv_recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if);
36int recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if); 36int batadv_recv_vis_packet(struct sk_buff *skb, struct hard_iface *recv_if);
37int recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if); 37int batadv_recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if);
38struct neigh_node *find_router(struct bat_priv *bat_priv, 38int batadv_recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if);
39 struct orig_node *orig_node, 39struct neigh_node *batadv_find_router(struct bat_priv *bat_priv,
40 const struct hard_iface *recv_if); 40 struct orig_node *orig_node,
41void bonding_candidate_del(struct orig_node *orig_node, 41 const struct hard_iface *recv_if);
42 struct neigh_node *neigh_node); 42void batadv_bonding_candidate_del(struct orig_node *orig_node,
43void bonding_candidate_add(struct orig_node *orig_node, 43 struct neigh_node *neigh_node);
44 struct neigh_node *neigh_node); 44void batadv_bonding_candidate_add(struct orig_node *orig_node,
45void bonding_save_primary(const struct orig_node *orig_node, 45 struct neigh_node *neigh_node);
46 struct orig_node *orig_neigh_node, 46void batadv_bonding_save_primary(const struct orig_node *orig_node,
47 const struct batman_ogm_packet *batman_ogm_packet); 47 struct orig_node *orig_neigh_node,
48int window_protected(struct bat_priv *bat_priv, int32_t seq_num_diff, 48 const struct batman_ogm_packet
49 unsigned long *last_reset); 49 *batman_ogm_packet);
50int batadv_window_protected(struct bat_priv *bat_priv, int32_t seq_num_diff,
51 unsigned long *last_reset);
50 52
51#endif /* _NET_BATMAN_ADV_ROUTING_H_ */ 53#endif /* _NET_BATMAN_ADV_ROUTING_H_ */