]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
Fix a bug that Dhcp6CalculateLeaseTime() function use incorrect offset on the IaAddre...
[mirror_edk2.git] / NetworkPkg / UefiPxeBcDxe / PxeBcDhcp6.c
index 6ab2afa088af05fc5113a25d364211044590e3c9..c93bad94342c28267f102f5c938090c97c26d580 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Functions implementation related with DHCPv6 for UefiPxeBc Driver.\r
 \r
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -1748,7 +1748,7 @@ PxeBcDhcp6Sarr (
   Config.IaInfoEvent           = NULL;\r
   Config.RapidCommit           = FALSE;\r
   Config.ReconfigureAccept     = FALSE;\r
-  Config.IaDescriptor.IaId     = 1;\r
+  Config.IaDescriptor.IaId     = Private->IaId;\r
   Config.IaDescriptor.Type     = EFI_DHCP6_IA_TYPE_NA;\r
   Config.SolicitRetransmission = Retransmit;\r
   Retransmit->Irt              = 4;\r
@@ -1852,7 +1852,7 @@ PxeBcDhcp6Sarr (
     return Status;\r
   }\r
 \r
-  Status = PxeBcFlushStaionIp (Private, &Private->StationIp, NULL);\r
+  Status = PxeBcFlushStationIp (Private, &Private->StationIp, NULL);\r
   if (EFI_ERROR (Status)) {\r
     PxeBcUnregisterIp6Address (Private);\r
     Dhcp6->Stop (Dhcp6);\r