Commit 0bc32c93 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Check 15 interfaces when search for MAC address.

parent 9b372b9a
......@@ -379,9 +379,8 @@ main(int argc, char **argv)
}
/* We failed to get a global EUI64 from the interfaces we were given.
Let's hope we find an interface with a MAC address among the first
five. */
for(i = 0; i < 5; i++) {
Let's try to find an interface with a MAC address among the first 15. */
for(i = 0; i < 15; 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