From patchwork Tue Jul 15 02:23:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 4134 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=212.227.17.11; helo=mout.web.de; envelope-from=linus.luessing@web.de; receiver=b.a.t.m.a.n@lists.open-mesh.org Received: from mout.web.de (mout.web.de [212.227.17.11]) by open-mesh.org (Postfix) with ESMTPS id 64945600B28 for ; Tue, 15 Jul 2014 04:23:17 +0200 (CEST) Received: from localhost ([82.83.72.255]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MThAi-1WyBFc3YSe-00QRCl; Tue, 15 Jul 2014 04:23:16 +0200 From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 15 Jul 2014 04:23:27 +0200 Message-Id: <1405391008-5112-1-git-send-email-linus.luessing@web.de> X-Mailer: git-send-email 2.0.1 MIME-Version: 1.0 X-Provags-ID: V03:K0:O6BR0hcFyrXTyiU8vwnCO9qohV83hXy7eP4/skiaRcZnUoVPLIy Cm4Ho21qSempTybfNqY1+t2+M5SDUxVNnd0xLxgYE10Glo2QQa5mfPjzFzkIR03hL0BfGcJ inUHDL9a+UAC2uDYumRzCCuuFJXnBN7Jqsw1oBlApGiqHNMLtTxwbMoZ+WiFQhfIz0Fb/dG Nx/Aj+Q6N8FOQNlkmcVeQ== Subject: [B.A.T.M.A.N.] [PATCH 1/2] batctl: adding multicast debug level X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking 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: Tue, 15 Jul 2014 02:23:17 -0000 This patch adds the multicast debug level to check for own multicast flag changes for instance. Signed-off-by: Linus Lüssing --- README | 1 + sys.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README b/README index b5fd259..c5e3575 100644 --- a/README +++ b/README @@ -389,6 +389,7 @@ $ batctl loglevel [ ] messages related to bridge loop avoidance (bla) [ ] messages related to arp snooping and distributed arp table (dat) [ ] messages related to network coding (nc) +[ ] messages related to multicast (mcast) batctl nc_nodes =============== diff --git a/sys.c b/sys.c index 676bef1..4fa0e24 100644 --- a/sys.c +++ b/sys.c @@ -280,6 +280,7 @@ static void log_level_usage(void) fprintf(stderr, " \t bla Messages related to bridge loop avoidance\n"); fprintf(stderr, " \t dat Messages related to arp snooping and distributed arp table\n"); fprintf(stderr, " \t nc Messages related to network coding\n"); + fprintf(stderr, " \t mcast Messages related to multicast\n"); } int handle_loglevel(char *mesh_iface, int argc, char **argv) @@ -325,6 +326,8 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv) log_level |= BIT(4); else if (strcmp(argv[i], "nc") == 0) log_level |= BIT(5); + else if (strcmp(argv[i], "mcast") == 0) + log_level |= BIT(6); else { log_level_usage(); goto out; @@ -359,6 +362,8 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv) "messages related to arp snooping and distributed arp table", "dat"); printf("[%c] %s (%s)\n", (log_level & BIT(5)) ? 'x' : ' ', "messages related to network coding", "nc"); + printf("[%c] %s (%s)\n", (log_level & BIT(6)) ? 'x' : ' ', + "messages related to multicast", "mcast"); out: free(path_buff);