b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] get a list of IP addresses to all neighbor nodes
@ 2015-01-05 18:46 Moritz Warning
  0 siblings, 0 replies; only message in thread
From: Moritz Warning @ 2015-01-05 18:46 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-05 18:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 18:46 [B.A.T.M.A.N.] get a list of IP addresses to all neighbor nodes Moritz Warning

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).