Revision: 16437
http://sourceforge.net/p/edk2/code/16437
Author: vanjeff
Date: 2014-11-25 07:36:05 +0000 (Tue, 25 Nov 2014)
Log Message:
-----------
Sync patch r16337 from main trunk.
Fix a bug in DHCP6 driver when using DUID LLT.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <[email protected]>
Reviewed-by: Dong Eric <[email protected]>
Reviewed-by: Wu Jiaxin <[email protected]>
(cherry picked from commit a95992233b9ddc53bc52583d09104eab22f9fb72)
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/16337
Modified Paths:
--------------
branches/UDK2014.SP1/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
Modified: branches/UDK2014.SP1/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
===================================================================
--- branches/UDK2014.SP1/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c 2014-11-25
07:35:29 UTC (rev 16436)
+++ branches/UDK2014.SP1/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c 2014-11-25
07:36:05 UTC (rev 16437)
@@ -143,9 +143,9 @@
//
// 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);
}
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits