Driver Binding functions and Service Binding functions\r
implementationfor for Dhcp6 Driver.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2012, 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
)\r
{\r
DHCP6_SERVICE *Dhcp6Srv;\r
+ EFI_STATUS Status;\r
\r
*Service = NULL;\r
Dhcp6Srv = AllocateZeroPool (sizeof (DHCP6_SERVICE));\r
sizeof (EFI_SERVICE_BINDING_PROTOCOL)\r
);\r
\r
+ //\r
+ // Locate Ip6->Ip6Config and store it for get IP6 Duplicate Address Detection transmits.\r
+ //\r
+ Status = gBS->HandleProtocol (\r
+ Controller,\r
+ &gEfiIp6ConfigProtocolGuid,\r
+ (VOID **) &Dhcp6Srv->Ip6Cfg\r
+ );\r
+ if (EFI_ERROR (Status)) {\r
+ FreePool (Dhcp6Srv);\r
+ return Status;\r
+ }\r
+\r
//\r
// Generate client Duid: If SMBIOS system UUID is located, generate DUID in DUID-UUID format.\r
// Otherwise, in DUID-LLT format.\r