From: Moritz Warning <moritzwarning@web.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] get a list of IP addresses to all neighbor nodes
Date: Mon, 05 Jan 2015 19:46:05 +0100 [thread overview]
Message-ID: <54AADBED.4030509@web.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
Hi,
I try to display a list of IPv6-Addresses of all neighbors on each node so users
can jump/click from a nodes HTTP status page to another (sounds like fun!).
The basic approach would be to use an IPv6 ULA address (prefix+ some MAC address) for the node
and to somehow get the MAC part from batman.
A list might generate by this:
for mac in $(batctl o -H | grep 'No' -v | cut -b 37-53 | sort | uniq); do
addr="$(ula_addr $prefix $mac)"
echo " <li><h3><a href=\"http://[$addr]\">$mac</a></h3></li>"
done
The problem is now to understand where this MAC comes from. Does it belong to a node or client (we do not want clients displayed)?
Afaik, the MAC is the address of the interface of the neighbor node, which might be one of several belonging to that node.
A solution might be to give a node an ULA-address for each interface batman-adv uses.
Is there a nicer solution?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
reply other threads:[~2015-01-05 18:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=54AADBED.4030509@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 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).