Skip to content

Commit

Permalink
Fix wrong link type to correct one DHCPV6_DUID_HARDWARE_EUI64_TYPE ->…
Browse files Browse the repository at this point in the history
… DHCPV6_DUID_HARDWARE_EUI48_TYPE

Change-Id: Ic1b2dcf2dff0f588fef75b1f89feddc17411790e
  • Loading branch information
Juha Heiskanen committed Oct 25, 2018
1 parent fd6c1c8 commit 6cbe7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/libDHCPv6/libDHCPv6_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void libdhcpv6_address_generate(dhcpv6_gua_server_entry_s *serverInfo, dh
if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI64_TYPE) {
memcpy(ptr, entry->linkId, 8);
*ptr ^= 2;
} else if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI64_TYPE) {
} else if (entry->linkType == DHCPV6_DUID_HARDWARE_EUI48_TYPE) {
*ptr++ = entry->linkId[0] ^ 2;
*ptr++ = entry->linkId[1];
*ptr++ = entry->linkId[2];
Expand Down

0 comments on commit 6cbe7c5

Please sign in to comment.