diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-11 20:09:40 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-20 16:15:30 -0400 |
commit | 88ed1e7772bbedfd0bb013c209f61619eca0a781 (patch) | |
tree | a3a47bbec633ca411ba06cb0ab5177740ec5f387 /net/batman-adv/routing.c | |
parent | 08c36d3e8ad1f73d3b0322842363b23f6d203630 (diff) |
batman-adv: Prefix unicast 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.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 8fb5ae3dee87..4103f68ae9db 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -850,15 +850,16 @@ static int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if) | |||
850 | if (unicast_packet->header.packet_type == BAT_UNICAST && | 850 | if (unicast_packet->header.packet_type == BAT_UNICAST && |
851 | atomic_read(&bat_priv->fragmentation) && | 851 | atomic_read(&bat_priv->fragmentation) && |
852 | skb->len > neigh_node->if_incoming->net_dev->mtu) { | 852 | skb->len > neigh_node->if_incoming->net_dev->mtu) { |
853 | ret = frag_send_skb(skb, bat_priv, | 853 | ret = batadv_frag_send_skb(skb, bat_priv, |
854 | neigh_node->if_incoming, neigh_node->addr); | 854 | neigh_node->if_incoming, |
855 | neigh_node->addr); | ||
855 | goto out; | 856 | goto out; |
856 | } | 857 | } |
857 | 858 | ||
858 | if (unicast_packet->header.packet_type == BAT_UNICAST_FRAG && | 859 | if (unicast_packet->header.packet_type == BAT_UNICAST_FRAG && |
859 | frag_can_reassemble(skb, neigh_node->if_incoming->net_dev->mtu)) { | 860 | frag_can_reassemble(skb, neigh_node->if_incoming->net_dev->mtu)) { |
860 | 861 | ||
861 | ret = frag_reassemble_skb(skb, bat_priv, &new_skb); | 862 | ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb); |
862 | 863 | ||
863 | if (ret == NET_RX_DROP) | 864 | if (ret == NET_RX_DROP) |
864 | goto out; | 865 | goto out; |
@@ -1013,7 +1014,7 @@ int batadv_recv_ucast_frag_packet(struct sk_buff *skb, | |||
1013 | /* packet for me */ | 1014 | /* packet for me */ |
1014 | if (is_my_mac(unicast_packet->dest)) { | 1015 | if (is_my_mac(unicast_packet->dest)) { |
1015 | 1016 | ||
1016 | ret = frag_reassemble_skb(skb, bat_priv, &new_skb); | 1017 | ret = batadv_frag_reassemble_skb(skb, bat_priv, &new_skb); |
1017 | 1018 | ||
1018 | if (ret == NET_RX_DROP) | 1019 | if (ret == NET_RX_DROP) |
1019 | return NET_RX_DROP; | 1020 | return NET_RX_DROP; |