B #1729: Fix EUI-64 computation

This commit is contained in:
Ruben S. Montero committed 2018-02-09 18:38:50 +01:00
1 parent efb7d12c9e
commit 68a0137751
1 file changed
+1 -1
+1 -1
View File
@@ -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]);