From: Antonio Quartull <ordex@autistici.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH] batctl: batctl: added loglevel support for DBG_ARP
Date: Tue, 22 Nov 2011 18:28:51 +0100 [thread overview]
Message-ID: <1321982931-32465-1-git-send-email-ordex@autistici.org> (raw)
With the introduction of DAT (Distributed ARP Table) a new log level has been
added. This log level is i ncharge of collecting messages related to DAT, ARP
parsing and snooping. README has been updated accordingly
Signed-off-by: Antonio Quartull <ordex@autistici.org>
---
README | 1 +
sys.c | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/README b/README
index 7119951..4bbfcb5 100644
--- a/README
+++ b/README
@@ -300,6 +300,7 @@ $ batctl loglevel
[ ] messages related to routing / flooding / broadcasting (batman)
[ ] messages related to route added / changed / deleted (routes)
[ ] messages related to translation table operations (tt)
+[ ] messages related to DAT, ARP parsing and snooping (arp)
batctl aggregation
==================
diff --git a/sys.c b/sys.c
index e510bee..044f772 100644
--- a/sys.c
+++ b/sys.c
@@ -183,6 +183,7 @@ static void log_level_usage(void)
printf(" \t batman Messages related to routing / flooding / broadcasting\n");
printf(" \t routes Messages related to route added / changed / deleted\n");
printf(" \t tt Messages related to translation table operations\n");
+ printf(" \t arp Messages related to DAT, ARP parsing and snooping\n");
}
int handle_loglevel(char *mesh_iface, int argc, char **argv)
@@ -221,6 +222,8 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv)
log_level |= (1 << 1);
else if (strcmp(argv[i], "tt") == 0)
log_level |= (1 << 2);
+ else if (strcmp(argv[i], "arp") == 0)
+ log_level |= (1 << 3);
else
log_level_usage();
}
@@ -246,6 +249,8 @@ int handle_loglevel(char *mesh_iface, int argc, char **argv)
"messages related to route added / changed / deleted", "routes");
printf("[%c] %s (%s)\n", (log_level & 4) ? 'x' : ' ',
"messages related to translation table operations", "tt");
+ printf("[%c] %s (%s)\n", (log_level & 8) ? 'x' : ' ',
+ "messages related to DAT, ARP parsing and snooping", "arp");
out:
if (errno == ENOENT)
--
1.7.3.4
next reply other threads:[~2011-11-22 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 17:28 Antonio Quartull [this message]
2011-11-22 20:47 ` [B.A.T.M.A.N.] [PATCHv2] batctl: added loglevel support for DBG_ARP Antonio Quartulli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1321982931-32465-1-git-send-email-ordex@autistici.org \
--to=ordex@autistici.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).