aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-11 20:09:37 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-20 16:15:26 -0400
commit9455e34cb2ded22e01abb6daa65ba1caeed8d7fe (patch)
tree56ac8dc90b5bcddcace5eea383b266e9654ecb2d /net/batman-adv/routing.c
parent30d3c5113f9a3f162d65d01b771b122afac0ce79 (diff)
batman-adv: Prefix send 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.c')
-rw-r--r--net/batman-adv/routing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index 631b40b65451..d7d05b22cc0d 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -319,7 +319,7 @@ static int recv_my_icmp_packet(struct bat_priv *bat_priv,
319 icmp_packet->msg_type = ECHO_REPLY; 319 icmp_packet->msg_type = ECHO_REPLY;
320 icmp_packet->header.ttl = TTL; 320 icmp_packet->header.ttl = TTL;
321 321
322 send_skb_packet(skb, router->if_incoming, router->addr); 322 batadv_send_skb_packet(skb, router->if_incoming, router->addr);
323 ret = NET_RX_SUCCESS; 323 ret = NET_RX_SUCCESS;
324 324
325out: 325out:
@@ -374,7 +374,7 @@ static int recv_icmp_ttl_exceeded(struct bat_priv *bat_priv,
374 icmp_packet->msg_type = TTL_EXCEEDED; 374 icmp_packet->msg_type = TTL_EXCEEDED;
375 icmp_packet->header.ttl = TTL; 375 icmp_packet->header.ttl = TTL;
376 376
377 send_skb_packet(skb, router->if_incoming, router->addr); 377 batadv_send_skb_packet(skb, router->if_incoming, router->addr);
378 ret = NET_RX_SUCCESS; 378 ret = NET_RX_SUCCESS;
379 379
380out: 380out:
@@ -459,7 +459,7 @@ int batadv_recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if)
459 icmp_packet->header.ttl--; 459 icmp_packet->header.ttl--;
460 460
461 /* route it */ 461 /* route it */
462 send_skb_packet(skb, router->if_incoming, router->addr); 462 batadv_send_skb_packet(skb, router->if_incoming, router->addr);
463 ret = NET_RX_SUCCESS; 463 ret = NET_RX_SUCCESS;
464 464
465out: 465out:
@@ -881,7 +881,7 @@ static int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
881 skb->len + ETH_HLEN); 881 skb->len + ETH_HLEN);
882 882
883 /* route it */ 883 /* route it */
884 send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr); 884 batadv_send_skb_packet(skb, neigh_node->if_incoming, neigh_node->addr);
885 ret = NET_RX_SUCCESS; 885 ret = NET_RX_SUCCESS;
886 886
887out: 887out:
@@ -1095,7 +1095,7 @@ int batadv_recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
1095 goto out; 1095 goto out;
1096 1096
1097 /* rebroadcast packet */ 1097 /* rebroadcast packet */
1098 add_bcast_packet_to_list(bat_priv, skb, 1); 1098 batadv_add_bcast_packet_to_list(bat_priv, skb, 1);
1099 1099
1100 /* don't hand the broadcast up if it is from an originator 1100 /* don't hand the broadcast up if it is from an originator
1101 * from the same backbone. 1101 * from the same backbone.