diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-06-03 16:19:17 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-28 02:45:05 -0400 |
commit | 42d0b044b7c9e5821f1bf3e2b4ea7861417c11c2 (patch) | |
tree | 3dedf87facfbc4dd0392256e93088c18509e1391 /net/batman-adv/main.h | |
parent | edbf7ff72312afcc502014ccf3c72c49fa55722a (diff) |
batman-adv: Prefix main defines with BATADV_
Reported-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 81 |
1 files changed, 41 insertions, 40 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index b7b98177dadc..09660b4041f9 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -20,79 +20,80 @@ | |||
20 | #ifndef _NET_BATMAN_ADV_MAIN_H_ | 20 | #ifndef _NET_BATMAN_ADV_MAIN_H_ |
21 | #define _NET_BATMAN_ADV_MAIN_H_ | 21 | #define _NET_BATMAN_ADV_MAIN_H_ |
22 | 22 | ||
23 | #define DRIVER_AUTHOR "Marek Lindner <lindner_marek@yahoo.de>, " \ | 23 | #define BATADV_DRIVER_AUTHOR "Marek Lindner <lindner_marek@yahoo.de>, " \ |
24 | "Simon Wunderlich <siwu@hrz.tu-chemnitz.de>" | 24 | "Simon Wunderlich <siwu@hrz.tu-chemnitz.de>" |
25 | #define DRIVER_DESC "B.A.T.M.A.N. advanced" | 25 | #define BATADV_DRIVER_DESC "B.A.T.M.A.N. advanced" |
26 | #define DRIVER_DEVICE "batman-adv" | 26 | #define BATADV_DRIVER_DEVICE "batman-adv" |
27 | 27 | ||
28 | #ifndef SOURCE_VERSION | 28 | #ifndef BATADV_SOURCE_VERSION |
29 | #define SOURCE_VERSION "2012.3.0" | 29 | #define BATADV_SOURCE_VERSION "2012.3.0" |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | /* B.A.T.M.A.N. parameters */ | 32 | /* B.A.T.M.A.N. parameters */ |
33 | 33 | ||
34 | #define TQ_MAX_VALUE 255 | 34 | #define BATADV_TQ_MAX_VALUE 255 |
35 | #define JITTER 20 | 35 | #define BATADV_JITTER 20 |
36 | 36 | ||
37 | /* Time To Live of broadcast messages */ | 37 | /* Time To Live of broadcast messages */ |
38 | #define TTL 50 | 38 | #define BATADV_TTL 50 |
39 | 39 | ||
40 | /* purge originators after time in seconds if no valid packet comes in | 40 | /* purge originators after time in seconds if no valid packet comes in |
41 | * -> TODO: check influence on TQ_LOCAL_WINDOW_SIZE | 41 | * -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE |
42 | */ | 42 | */ |
43 | #define PURGE_TIMEOUT 200000 /* 200 seconds */ | 43 | #define BATADV_PURGE_TIMEOUT 200000 /* 200 seconds */ |
44 | #define TT_LOCAL_TIMEOUT 3600000 /* in miliseconds */ | 44 | #define BATADV_TT_LOCAL_TIMEOUT 3600000 /* in miliseconds */ |
45 | #define TT_CLIENT_ROAM_TIMEOUT 600000 /* in miliseconds */ | 45 | #define BATADV_TT_CLIENT_ROAM_TIMEOUT 600000 /* in miliseconds */ |
46 | /* sliding packet range of received originator messages in sequence numbers | 46 | /* sliding packet range of received originator messages in sequence numbers |
47 | * (should be a multiple of our word size) | 47 | * (should be a multiple of our word size) |
48 | */ | 48 | */ |
49 | #define TQ_LOCAL_WINDOW_SIZE 64 | 49 | #define BATADV_TQ_LOCAL_WINDOW_SIZE 64 |
50 | /* miliseconds we have to keep pending tt_req */ | 50 | /* miliseconds we have to keep pending tt_req */ |
51 | #define TT_REQUEST_TIMEOUT 3000 | 51 | #define BATADV_TT_REQUEST_TIMEOUT 3000 |
52 | 52 | ||
53 | #define TQ_GLOBAL_WINDOW_SIZE 5 | 53 | #define BATADV_TQ_GLOBAL_WINDOW_SIZE 5 |
54 | #define TQ_LOCAL_BIDRECT_SEND_MINIMUM 1 | 54 | #define BATADV_TQ_LOCAL_BIDRECT_SEND_MINIMUM 1 |
55 | #define TQ_LOCAL_BIDRECT_RECV_MINIMUM 1 | 55 | #define BATADV_TQ_LOCAL_BIDRECT_RECV_MINIMUM 1 |
56 | #define TQ_TOTAL_BIDRECT_LIMIT 1 | 56 | #define BATADV_TQ_TOTAL_BIDRECT_LIMIT 1 |
57 | 57 | ||
58 | #define TT_OGM_APPEND_MAX 3 /* number of OGMs sent with the last tt diff */ | 58 | /* number of OGMs sent with the last tt diff */ |
59 | #define BATADV_TT_OGM_APPEND_MAX 3 | ||
59 | 60 | ||
60 | /* Time in which a client can roam at most ROAMING_MAX_COUNT times in | 61 | /* Time in which a client can roam at most ROAMING_MAX_COUNT times in |
61 | * miliseconds | 62 | * miliseconds |
62 | */ | 63 | */ |
63 | #define ROAMING_MAX_TIME 20000 | 64 | #define BATADV_ROAMING_MAX_TIME 20000 |
64 | #define ROAMING_MAX_COUNT 5 | 65 | #define BATADV_ROAMING_MAX_COUNT 5 |
65 | 66 | ||
66 | #define NO_FLAGS 0 | 67 | #define BATADV_NO_FLAGS 0 |
67 | 68 | ||
68 | #define NULL_IFINDEX 0 /* dummy ifindex used to avoid iface checks */ | 69 | #define BATADV_NULL_IFINDEX 0 /* dummy ifindex used to avoid iface checks */ |
69 | 70 | ||
70 | #define NUM_WORDS BITS_TO_LONGS(TQ_LOCAL_WINDOW_SIZE) | 71 | #define BATADV_NUM_WORDS BITS_TO_LONGS(BATADV_TQ_LOCAL_WINDOW_SIZE) |
71 | 72 | ||
72 | #define LOG_BUF_LEN 8192 /* has to be a power of 2 */ | 73 | #define BATADV_LOG_BUF_LEN 8192 /* has to be a power of 2 */ |
73 | 74 | ||
74 | #define VIS_INTERVAL 5000 /* 5 seconds */ | 75 | #define BATADV_VIS_INTERVAL 5000 /* 5 seconds */ |
75 | 76 | ||
76 | /* how much worse secondary interfaces may be to be considered as bonding | 77 | /* how much worse secondary interfaces may be to be considered as bonding |
77 | * candidates | 78 | * candidates |
78 | */ | 79 | */ |
79 | #define BONDING_TQ_THRESHOLD 50 | 80 | #define BATADV_BONDING_TQ_THRESHOLD 50 |
80 | 81 | ||
81 | /* should not be bigger than 512 bytes or change the size of | 82 | /* should not be bigger than 512 bytes or change the size of |
82 | * forw_packet->direct_link_flags | 83 | * forw_packet->direct_link_flags |
83 | */ | 84 | */ |
84 | #define MAX_AGGREGATION_BYTES 512 | 85 | #define BATADV_MAX_AGGREGATION_BYTES 512 |
85 | #define MAX_AGGREGATION_MS 100 | 86 | #define BATADV_MAX_AGGREGATION_MS 100 |
86 | 87 | ||
87 | #define BLA_PERIOD_LENGTH 10000 /* 10 seconds */ | 88 | #define BATADV_BLA_PERIOD_LENGTH 10000 /* 10 seconds */ |
88 | #define BLA_BACKBONE_TIMEOUT (BLA_PERIOD_LENGTH * 3) | 89 | #define BATADV_BLA_BACKBONE_TIMEOUT (BATADV_BLA_PERIOD_LENGTH * 3) |
89 | #define BLA_CLAIM_TIMEOUT (BLA_PERIOD_LENGTH * 10) | 90 | #define BATADV_BLA_CLAIM_TIMEOUT (BATADV_BLA_PERIOD_LENGTH * 10) |
90 | 91 | ||
91 | #define DUPLIST_SIZE 16 | 92 | #define BATADV_DUPLIST_SIZE 16 |
92 | #define DUPLIST_TIMEOUT 500 /* 500 ms */ | 93 | #define BATADV_DUPLIST_TIMEOUT 500 /* 500 ms */ |
93 | /* don't reset again within 30 seconds */ | 94 | /* don't reset again within 30 seconds */ |
94 | #define RESET_PROTECTION_MS 30000 | 95 | #define BATADV_RESET_PROTECTION_MS 30000 |
95 | #define EXPECTED_SEQNO_RANGE 65536 | 96 | #define BATADV_EXPECTED_SEQNO_RANGE 65536 |
96 | 97 | ||
97 | enum mesh_state { | 98 | enum mesh_state { |
98 | MESH_INACTIVE, | 99 | MESH_INACTIVE, |
@@ -100,8 +101,8 @@ enum mesh_state { | |||
100 | MESH_DEACTIVATING | 101 | MESH_DEACTIVATING |
101 | }; | 102 | }; |
102 | 103 | ||
103 | #define BCAST_QUEUE_LEN 256 | 104 | #define BATADV_BCAST_QUEUE_LEN 256 |
104 | #define BATMAN_QUEUE_LEN 256 | 105 | #define BATADV_BATMAN_QUEUE_LEN 256 |
105 | 106 | ||
106 | enum uev_action { | 107 | enum uev_action { |
107 | UEV_ADD = 0, | 108 | UEV_ADD = 0, |
@@ -113,7 +114,7 @@ enum uev_type { | |||
113 | UEV_GW = 0 | 114 | UEV_GW = 0 |
114 | }; | 115 | }; |
115 | 116 | ||
116 | #define GW_THRESHOLD 50 | 117 | #define BATADV_GW_THRESHOLD 50 |
117 | 118 | ||
118 | /* Debug Messages */ | 119 | /* Debug Messages */ |
119 | #ifdef pr_fmt | 120 | #ifdef pr_fmt |