]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
batman-adv: Prefix unicast defines with BATADV_
authorSven Eckelmann <sven@narfation.org>
Sun, 3 Jun 2012 20:19:15 +0000 (22:19 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 28 Jun 2012 06:45:02 +0000 (08:45 +0200)
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/originator.c
net/batman-adv/unicast.c
net/batman-adv/unicast.h

index bf9ec39a83496eb92bd7eed992fd8aa06b0407e8..1980696a7fd7f9d84b2b1b1913c69ebb8741185c 100644 (file)
@@ -370,7 +370,7 @@ static void _batadv_purge_orig(struct bat_priv *bat_priv)
                        }
 
                        if (batadv_has_timed_out(orig_node->last_frag_packet,
-                                                FRAG_TIMEOUT))
+                                                BATADV_FRAG_TIMEOUT))
                                batadv_frag_list_free(&orig_node->frag_list);
                }
                spin_unlock_bh(list_lock);
index c8da6b0acc38114f740984308cdcc42ae6145534..809832026370059f67aa44cd2388e4d99482656e 100644 (file)
@@ -98,7 +98,7 @@ static int batadv_frag_create_buffer(struct list_head *head)
        int i;
        struct frag_packet_list_entry *tfp;
 
-       for (i = 0; i < FRAG_BUFFER_SIZE; i++) {
+       for (i = 0; i < BATADV_FRAG_BUFFER_SIZE; i++) {
                tfp = kmalloc(sizeof(*tfp), GFP_ATOMIC);
                if (!tfp) {
                        batadv_frag_list_free(head);
index 9257b83534fdc8d96ebf8ce21c400aac5778d798..936287f552eeb8a3d29d32243c05868583c1f57d 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "packet.h"
 
-#define FRAG_TIMEOUT 10000     /* purge frag list entries after time in ms */
-#define FRAG_BUFFER_SIZE 6     /* number of list elements in buffer */
+#define BATADV_FRAG_TIMEOUT 10000 /* purge frag list entries after time in ms */
+#define BATADV_FRAG_BUFFER_SIZE 6 /* number of list elements in buffer */
 
 int batadv_frag_reassemble_skb(struct sk_buff *skb, struct bat_priv *bat_priv,
                               struct sk_buff **new_skb);