From: Moritz Warning <moritzwarning@web.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] batctl: feature to filter nodes/clients
Date: Sun, 01 Feb 2015 14:15:16 +0100 [thread overview]
Message-ID: <54CE26E4.7070307@web.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]
Hi,
I need to display the number of all nodes/clients as well as all neighbor nodes/clients.
This would be easy if batctl would be able to output the respective
list of mac addresses (batctl ... | wc -l).
I've started writing a patch as part of a feature request:
http://www.open-mesh.org/issues/203
But the problem is how to get the respective output form the debug tables.
I have been reading the docs, but have not been able
to understand the necessary information needed, no offense:
http://www.open-mesh.org/projects/batman-adv/wiki/Understand-your-batman-adv-network
Some explanation beforehand:
Clients are computers not running batman-adv,
represented by the MAC address of its network interface.
Nodes are computers running batman-adv,
represented by the MAC address of its primary interface.
List of all nodes:
Get all MACs from the 'Originator' column of the originator table
List of all neighbor nodes:
Get all MACs from the 'Nexthop' column of the originator table
and make it a unique list.
List of all clients:
Get all MACs of the 'Client' column of the transtable_local table
when it starts with a '*' character.
List of all neighbor clients:
Get all MACs of the 'Client' column of the transtable_global table
when it starts with a '*' character and when the nodes own originator
MAC (of the primary interface?) is also in the 'Originator' column.
I do not think this approach is correct, yet.
Maybe someone can drop some hints.
thanks,
mwarning
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next reply other threads:[~2015-02-01 13:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-01 13:15 Moritz Warning [this message]
2015-02-05 12:34 ` [B.A.T.M.A.N.] batctl: feature to filter nodes/clients Simon Wunderlich
2015-02-05 18:11 ` Moritz Warning
2015-02-05 18:24 ` Simon Wunderlich
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=54CE26E4.7070307@web.de \
--to=moritzwarning@web.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.