From moritzwarning@web.de Mon Jan 5 19:50:40 2015 From: Moritz Warning 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 Message-ID: <54AADBED.4030509@web.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7116718746763429348==" --===============7116718746763429348== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I try to display a list of IPv6-Addresses of all neighbors on each node so us= ers 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 addr= ess) 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=3D"$(ula_addr $prefix $mac)" echo "
  • $mac

  • " 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 mi= ght be one of several belonging to that node. A solution might be to give a node an ULA-address for each interface batman-a= dv uses. Is there a nicer solution? --===============7116718746763429348== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEKCmlRRWNCQUVC Q0FBR0JRSlVxdHZ0QUFvSkVDSHJoNTZQUDR3cDBNVUgvUlVNVHNLeXo3dXppUENwbmJRUk1iRFgK bEk1U2NWbDJCemRIVkc5M29IMkJkZTNPMC9Rellsa2RaTzl0Y20yeW9uZlc0NDYyUVpLMXF1Tmky TmQxME1IeAp3SlY4a0lFR2x4NFgxby9rSHArTVMyTmtySHNmWEgwVzdhYTFzaEVqTE1LV2hkQjIz UDFHT3U1UWYraDQ3aVExCjZIYjBOc1BUaUJrL0ppVjJDZmM2SHduVVZyQWNTclVEdllGSDg2ZE15 UlZSMG9sOUNsd2dkYmZPYnNQUkFxYlgKUjVRZFJwMVZwbG1ZSFAyTG1KbGhLdFNWV3hXK2VhL0lY OU5lTWt6SWhYR1NXYWRCQzNCUVRQdTl6WlhzY0FHMQpMZFRJSGdSWFdTNHR6Tkd6SjNGVGFtRWtm a2hWRXArb2xuaDk1VGtWYURwZVhmRU1ZZG0wYmVTSmRDQ3Z3ejA9Cj16VmtxCi0tLS0tRU5EIFBH UCBTSUdOQVRVUkUtLS0tLQo= --===============7116718746763429348==--