Skip to content

Commit 6cbe7c5

Browse files
author
Juha Heiskanen
committed
Fix wrong link type to correct one DHCPV6_DUID_HARDWARE_EUI64_TYPE -> DHCPV6_DUID_HARDWARE_EUI48_TYPE
Change-Id: Ic1b2dcf2dff0f588fef75b1f89feddc17411790e
1 parent fd6c1c8 commit 6cbe7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/libDHCPv6/libDHCPv6_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void libdhcpv6_address_generate(dhcpv6_gua_server_entry_s *serverInfo, dh
6363
if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI64_TYPE) {
6464
memcpy(ptr, entry->linkId, 8);
6565
*ptr ^= 2;
66-
} else if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI64_TYPE) {
66+
} else if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI48_TYPE) {
6767
*ptr++ = entry->linkId[0] ^ 2;
6868
*ptr++ = entry->linkId[1];
6969
*ptr++ = entry->linkId[2];

0 commit comments

Comments
 (0)