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) ...@@ -379,8 +379,8 @@ main(int argc, char **argv)
} }
/* We failed to get a global EUI64 from the interfaces we were given. /* 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. */ Let's try to find an interface with a MAC address. */
for(i = 0; i < 15; i++) { for(i = 1; i < 256; i++) {
char buf[IF_NAMESIZE], *ifname; char buf[IF_NAMESIZE], *ifname;
unsigned char eui[8]; unsigned char eui[8];
ifname = if_indextoname(i, buf); 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