mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 09:13:15 +09:00
B #1729: Fix EUI-64 computation
This commit is contained in:
1 parent
efb7d12c9e
commit
68a0137751
1 file changed
+1
-1
@@ -1019,7 +1019,7 @@ int AddressRange::ip6_to_s(const unsigned int prefix[],
|
||||
struct in6_addr ip6;
|
||||
char dst[INET6_ADDRSTRLEN];
|
||||
|
||||
eui64[1] = ((mac[1]+512)<<16) + ((mlow & 0xFF000000)>>16) + 0x000000FF;
|
||||
eui64[1] = ((mac[1]^0x0200)<<16) + ((mlow & 0xFF000000)>>16) + 0x000000FF;
|
||||
eui64[0] = 4261412864 + (mlow & 0x00FFFFFF);
|
||||
|
||||
ip6.s6_addr32[2] = htonl(eui64[1]);
|
||||
|
||||
Reference in new issue
Block a user