Skip to content

Commit

Permalink
batman-adv: Prefix unicast defines with BATADV_
Browse files Browse the repository at this point in the history
Reported-by: Martin Hundebøll <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
  • Loading branch information
ecsv authored and Antonio Quartulli committed Jun 28, 2012
1 parent c11fdfa commit 4d5d2db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/batman-adv/originator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion net/batman-adv/unicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions net/batman-adv/unicast.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4d5d2db

Please sign in to comment.