Skip to content

Commit 0e861a3

Browse files
author
Antonio Quartulli
committed
batman-adv: Distributed ARP Table - add a new debug log level
A new log level has been added to concentrate messages regarding DAT: ARP snooping, requests, response and DHT related messages. The new log level is named BATADV_DBG_DAT Signed-off-by: Antonio Quartulli <[email protected]>
1 parent 7cdcf6d commit 0e861a3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Documentation/networking/batman-adv.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ abled during run time. Following log_levels are defined:
203203
2 - Enable messages related to route added / changed / deleted
204204
4 - Enable messages related to translation table operations
205205
8 - Enable messages related to bridge loop avoidance
206-
15 - enable all messages
206+
16 - Enable messaged related to DAT, ARP snooping and parsing
207+
31 - Enable all messages
207208

208209
The debug output can be changed at runtime using the file
209210
/sys/class/net/bat0/mesh/log_level. e.g.

net/batman-adv/main.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,16 @@ int batadv_algo_seq_print_text(struct seq_file *seq, void *offset);
171171
* @BATADV_DBG_ROUTES: route added / changed / deleted
172172
* @BATADV_DBG_TT: translation table messages
173173
* @BATADV_DBG_BLA: bridge loop avoidance messages
174+
* @BATADV_DBG_DAT: ARP snooping and DAT related messages
174175
* @BATADV_DBG_ALL: the union of all the above log levels
175176
*/
176177
enum batadv_dbg_level {
177178
BATADV_DBG_BATMAN = BIT(0),
178179
BATADV_DBG_ROUTES = BIT(1),
179180
BATADV_DBG_TT = BIT(2),
180181
BATADV_DBG_BLA = BIT(3),
181-
BATADV_DBG_ALL = 15,
182+
BATADV_DBG_DAT = BIT(4),
183+
BATADV_DBG_ALL = 31,
182184
};
183185

184186
#ifdef CONFIG_BATMAN_ADV_DEBUG

0 commit comments

Comments
 (0)