batctl: add neighbor table support

Message ID 1438962965-30034-1-git-send-email-mareklindner@neomailbox.ch (mailing list archive)
State Accepted, archived
Headers

Commit Message

Marek Lindner Aug. 7, 2015, 3:56 p.m. UTC
  Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
---
 debug.c      | 6 ++++++
 debug.h      | 1 +
 man/batctl.8 | 3 +++
 3 files changed, 10 insertions(+)
  

Comments

Marek Lindner Aug. 9, 2015, 4:11 p.m. UTC | #1
On Friday, August 07, 2015 23:56:05 Marek Lindner wrote:
> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
> ---
>  debug.c      | 6 ++++++
>  debug.h      | 1 +
>  man/batctl.8 | 3 +++
>  3 files changed, 10 insertions(+)

Applied in revision bf133f0.

Regards,
Marek
  

Patch

diff --git a/debug.c b/debug.c
index a050345..3fbe587 100644
--- a/debug.c
+++ b/debug.c
@@ -31,6 +31,12 @@ 
 
 const struct debug_table_data batctl_debug_tables[BATCTL_TABLE_NUM] = {
 	{
+		.opt_long = "neighbors",
+		.opt_short = "n",
+		.debugfs_name = "neighbors",
+		.header_lines = 2,
+	},
+	{
 		.opt_long = "originators",
 		.opt_short = "o",
 		.debugfs_name = "originators",
diff --git a/debug.h b/debug.h
index 2bc0ff9..c9397e1 100644
--- a/debug.h
+++ b/debug.h
@@ -30,6 +30,7 @@ 
 #define DEBUG_LOG "log"
 
 enum batctl_debug_tables {
+	BATCTL_TABLE_NEIGHBORS,
 	BATCTL_TABLE_ORIGINATORS,
 	BATCTL_TABLE_GATEWAYS,
 	BATCTL_TABLE_TRANSLOCAL,
diff --git a/man/batctl.8 b/man/batctl.8
index bc190c0..3720256 100644
--- a/man/batctl.8
+++ b/man/batctl.8
@@ -204,6 +204,9 @@  The local and global translation tables also support the "\-u" and "\-m" option
 
 List of debug tables:
 .RS 10
+\- neighbors|n
+.RE
+.RS 10
 \- originators|o
 .RE
 .RS 10