From patchwork Fri Aug 7 15:56:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 4612 Return-Path: Received-SPF: Softfail (domain owner discourages use of this host) identity=mailfrom; client-ip=5.148.176.57; helo=s1.neomailbox.net; envelope-from=mareklindner@neomailbox.ch; receiver=b.a.t.m.a.n@lists.open-mesh.org Received: from s1.neomailbox.net (s1.neomailbox.net [5.148.176.57]) by open-mesh.org (Postfix) with ESMTPS id 1BF8B8057D for ; Fri, 7 Aug 2015 17:56:12 +0200 (CEST) From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Fri, 7 Aug 2015 23:56:05 +0800 Message-Id: <1438962965-30034-1-git-send-email-mareklindner@neomailbox.ch> Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batctl: add neighbor table support X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2015 15:56:14 -0000 Signed-off-by: Marek Lindner --- debug.c | 6 ++++++ debug.h | 1 + man/batctl.8 | 3 +++ 3 files changed, 10 insertions(+) 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