mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
B #1729: Fix EUI-64 computation
This commit is contained in:
parent
efb7d12c9e
commit
68a0137751
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user