address icon indicating copy to clipboard operation
address copied to clipboard

address.mac doesn't return mac address if iface doesn't have ip

Open nekuz0r opened this issue 11 years ago • 0 comments

The address.mac function doesn't return the mac address of the iface if it doesn't have an ip address.

I only test it under linux, but i can see in the source code the getMAC function uses the ip address of the interface to match the interface. I don't really understand why this check is done since multiple interface can't have the same name. What happens if an interface have secondaries ip address ? ifconfig IFACE or ip link show IFACE returns the configuration of the named interface only.

nekuz0r avatar Sep 26 '13 17:09 nekuz0r