I have a list of possible to ip6 addresses converted MAC-addresses, that could be found in the output ofping6 ff02::1%wlan0possible mac addresses are for example:66:70:02:75:80:fe, 64:70:02:74:80:fe, 66:70:02:74:80:ffeach of them would lead to a Link-local ip6 address beginning with fe80:: and inserted FF:FE in the middleso 66:70:02:75:80:fe would lead to fe80::6670:2ff:fe75:80feI would like to create a script that gives out the matching LinkLocal address for a list of MAC adddresses like:$ find-in-macs 66:70:02:75:80:fe 64:70:02:74:80:fe 66:70:02:74:80:ffand the output:matching IP6: fe80::6670:2ff:fe75:80fethat script find-in-macs could look like this:#!/bin/bashmac_to_ipv6 () {  IFS=':'; set $1; unset IFS  ipv6_address=fe80::$(printf %02x $((0x$1 ^ 2)))$2:${3}ff:fe$4:$5$6  echo $ipv6_address}for i do    echo checking $i    ping6 ff02::1%wlan0|grep mac_to_ipv6 $idone
search fitting ipv6 address for MAC-Address in neighbours
bash;shell script;string
With your tips, I could finish the script:#!/bin/bashmac_to_ipv6 () {  IFS=':'; set $1; unset IFS  ipv6_address=fe80::$(printf %02x $((0x$1 ^ 2)))$2:${3}ff:fe$4:$5$6  echo $ipv6_address}echo Next MAC with ^Cfor i do  echo  echo checking for  $i = $(mac_to_ipv6 $i)  echo   ping6 ff02::1%wlan0 | head -n 1000 | grep $(mac_to_ipv6 $i)donesee: http://freifunk.in-kiel.de/wiki/Firmware#IPv6_Adresse_des_Routers