Commit eb92f09d authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

kernel_netlink.if_eui64: bug with 64 bits mac addresses.

parent e7c26252
...@@ -119,7 +119,7 @@ if_eui64(char *ifname, int ifindex, unsigned char *eui) ...@@ -119,7 +119,7 @@ if_eui64(char *ifname, int ifindex, unsigned char *eui)
errno = ENOENT; errno = ENOENT;
return -1; return -1;
} }
memcpy(eui, mac, 64); memcpy(eui, mac, 8);
eui[0] ^= 2; eui[0] ^= 2;
return 1; return 1;
} }
......
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