Skip to content

Commit 990f4f1

Browse files
author
Juha Heiskanen
authored
Merge pull request #1877 from ARMmbed/dhcpv6_server_fix
Fix wrong link type to correct one DHCPV6_DUID_HARDWARE_EUI64_TYPE ->…
2 parents fd6c1c8 + 6cbe7c5 commit 990f4f1

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)