#include "gateway_common.h"
 #include "originator.h"
 
-static void send_outstanding_bcast_packet(struct work_struct *work);
+static void batadv_send_outstanding_bcast_packet(struct work_struct *work);
 
 /* send out an already prepared packet to the given address via the
  * specified batman interface
        bat_priv->bat_algo_ops->bat_ogm_schedule(hard_iface);
 }
 
-static void forw_packet_free(struct forw_packet *forw_packet)
+static void batadv_forw_packet_free(struct forw_packet *forw_packet)
 {
        if (forw_packet->skb)
                kfree_skb(forw_packet->skb);
        kfree(forw_packet);
 }
 
-static void _add_bcast_packet_to_list(struct bat_priv *bat_priv,
-                                     struct forw_packet *forw_packet,
-                                     unsigned long send_time)
+static void _batadv_add_bcast_packet_to_list(struct bat_priv *bat_priv,
+                                            struct forw_packet *forw_packet,
+                                            unsigned long send_time)
 {
        INIT_HLIST_NODE(&forw_packet->list);
 
 
        /* start timer for this packet */
        INIT_DELAYED_WORK(&forw_packet->delayed_work,
-                         send_outstanding_bcast_packet);
+                         batadv_send_outstanding_bcast_packet);
        queue_delayed_work(batadv_event_workqueue, &forw_packet->delayed_work,
                           send_time);
 }
        /* how often did we send the bcast packet ? */
        forw_packet->num_packets = 0;
 
-       _add_bcast_packet_to_list(bat_priv, forw_packet, delay);
+       _batadv_add_bcast_packet_to_list(bat_priv, forw_packet, delay);
        return NETDEV_TX_OK;
 
 packet_free:
        return NETDEV_TX_BUSY;
 }
 
-static void send_outstanding_bcast_packet(struct work_struct *work)
+static void batadv_send_outstanding_bcast_packet(struct work_struct *work)
 {
        struct hard_iface *hard_iface;
        struct delayed_work *delayed_work =
 
        /* if we still have some more bcasts to send */
        if (forw_packet->num_packets < 3) {
-               _add_bcast_packet_to_list(bat_priv, forw_packet,
-                                         msecs_to_jiffies(5));
+               _batadv_add_bcast_packet_to_list(bat_priv, forw_packet,
+                                                msecs_to_jiffies(5));
                return;
        }
 
 out:
-       forw_packet_free(forw_packet);
+       batadv_forw_packet_free(forw_packet);
        atomic_inc(&bat_priv->bcast_queue_left);
 }
 
        if (!forw_packet->own)
                atomic_inc(&bat_priv->batman_queue_left);
 
-       forw_packet_free(forw_packet);
+       batadv_forw_packet_free(forw_packet);
 }
 
 void batadv_purge_outstanding_packets(struct bat_priv *bat_priv,
 
                spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
 
-               /* send_outstanding_bcast_packet() will lock the list to
+               /* batadv_send_outstanding_bcast_packet() will lock the list to
                 * delete the item from the list
                 */
                pending = cancel_delayed_work_sync(&forw_packet->delayed_work);
 
                if (pending) {
                        hlist_del(&forw_packet->list);
-                       forw_packet_free(forw_packet);
+                       batadv_forw_packet_free(forw_packet);
                }
        }
        spin_unlock_bh(&bat_priv->forw_bcast_list_lock);
 
                if (pending) {
                        hlist_del(&forw_packet->list);
-                       forw_packet_free(forw_packet);
+                       batadv_forw_packet_free(forw_packet);
                }
        }
        spin_unlock_bh(&bat_priv->forw_bat_list_lock);