Commit 6568e9d0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Check for MAC addresses on 255 interfaces.

parent f502d7ee
......@@ -379,8 +379,8 @@ main(int argc, char **argv)
}
/* We failed to get a global EUI64 from the interfaces we were given.
Let's try to find an interface with a MAC address among the first 15. */
for(i = 0; i < 15; i++) {
Let's try to find an interface with a MAC address. */
for(i = 1; i < 256; i++) {
char buf[IF_NAMESIZE], *ifname;
unsigned char eui[8];
ifname = if_indextoname(i, buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment