B #4512: Fixed onedb fsck ip6 leases check (#4516)

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristian Feldsam authored and GitHub committed 2020-04-13 17:57:47 +02:00
1 parent 51f42a7c28
commit 0dc2a5de4e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -550,7 +550,7 @@ EOT
mlow = mac[0]
eui64 = [
4261412864 + (mlow & 0x00FFFFFF),
((mac[1]+512)<<16) + ((mlow & 0xFF000000)>>16) + 0x000000FF
((mac[1]^0x0200)<<16) + ((mlow & 0xFF000000)>>16) + 0x000000FF
]
return (eui64[1] << 32) + eui64[0]
+1 -1
View File
@@ -211,7 +211,7 @@ module OneDBFsck
g_pref = ipv6[:global_prefix]
u_pref = ipv6[:ula_prefix]
l_pref = ipv6[:linked_prefix]
l_pref = ipv6[:link_prefix]
unless g_pref.nil?
pref = (g_pref << 64) | ip6_suffix