diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2014-11-12 05:14:07 +0000 |
---|---|---|
committer | sfu5 <sfu5@Edk2> | 2014-11-12 05:14:07 +0000 |
commit | 6da5153cfcb6c3f04226183deeb242ca7ffad678 (patch) | |
tree | 40bc606ab3ce76e8f8c672f7aaa7ae7271bf6616 /NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c | |
parent | 09fc7dbb9498cc7d56a7427fcacb4e77b47e87e5 (diff) | |
download | edk2-6da5153cfcb6c3f04226183deeb242ca7ffad678.tar.gz edk2-6da5153cfcb6c3f04226183deeb242ca7ffad678.tar.bz2 edk2-6da5153cfcb6c3f04226183deeb242ca7ffad678.zip |
Fix a bug in DHCP6 driver when using DUID LLT.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Dong Eric <eric.dong@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16337 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c')
-rw-r--r-- | NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c index 5379d0d16a..e3349ee987 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c @@ -143,9 +143,9 @@ Dhcp6GenerateClientId ( //
// Set the Duid-type, hardware-type, time and copy the hardware address.
//
- WriteUnaligned16 ((UINT16 *) ((UINT8 *)&Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid)), HTONS (Dhcp6DuidTypeLlt));
- WriteUnaligned16 ((UINT16 *) ((UINT8 *)&Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid) + 2), HTONS (NET_IFTYPE_ETHERNET));
- WriteUnaligned32 ((UINT32 *) ((UINT8 *)&Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid) + 4), HTONL (Stamp));
+ WriteUnaligned16 ((UINT16 *) ((UINT8 *) Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid)), HTONS (Dhcp6DuidTypeLlt));
+ WriteUnaligned16 ((UINT16 *) ((UINT8 *) Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid) + 2), HTONS (NET_IFTYPE_ETHERNET));
+ WriteUnaligned32 ((UINT32 *) ((UINT8 *) Duid + OFFSET_OF (EFI_DHCP6_DUID, Duid) + 4), HTONL (Stamp));
CopyMem (Duid->Duid + 8, &Mode->CurrentAddress, Mode->HwAddressSize);
}
|