public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 1/2] batctl: adding multicast debug level
@ 2014-07-15  2:23 Linus Lüssing
  2014-07-15  2:23 ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: adding mcast flags debugfs table Linus Lüssing
  2014-07-19  9:55 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: adding multicast debug level Marek Lindner
  0 siblings, 2 replies; 4+ messages in thread
From: Linus Lüssing @ 2014-07-15  2:23 UTC (permalink / raw)
  To: b.a.t.m.a.n

This patch adds the multicast debug level to check for own
multicast flag changes for instance.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
---
 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);
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-19  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  2:23 [B.A.T.M.A.N.] [PATCH 1/2] batctl: adding multicast debug level Linus Lüssing
2014-07-15  2:23 ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: adding mcast flags debugfs table Linus Lüssing
2014-07-19  9:57   ` Marek Lindner
2014-07-19  9:55 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: adding multicast debug level Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox