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: signature.asc
Description: OpenPGP digital signature

Reply via email to