/** @file\r
Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PROTOCOL protocol.\r
\r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution. \r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php. \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
///\r
/// Component Name Protocol instance\r
///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
EFI_COMPONENT_NAME_PROTOCOL gHttpBootDxeComponentName = {\r
(EFI_COMPONENT_NAME_GET_DRIVER_NAME) HttpBootDxeComponentNameGetDriverName,\r
(EFI_COMPONENT_NAME_GET_CONTROLLER_NAME)HttpBootDxeComponentNameGetControllerName,\r
///\r
/// Component Name 2 Protocol instance\r
///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
EFI_COMPONENT_NAME2_PROTOCOL gHttpBootDxeComponentName2 = {\r
HttpBootDxeComponentNameGetDriverName,\r
HttpBootDxeComponentNameGetControllerName,\r
///\r
/// Table of driver names\r
///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
EFI_UNICODE_STRING_TABLE mHttpBootDxeDriverNameTable[] = {\r
{ "eng;en", (CHAR16 *)L"UEFI HTTP Boot Driver" },\r
{ NULL, NULL }\r
///\r
/// Table of controller names\r
///\r
-GLOBAL_REMOVE_IF_UNREFERENCED \r
+GLOBAL_REMOVE_IF_UNREFERENCED\r
EFI_UNICODE_STRING_TABLE mHttpBootDxeControllerNameTable[] = {\r
{ "eng;en", (CHAR16 *)L"UEFI Http Boot Controller" },\r
{ NULL, NULL }\r
if (ControllerHandle == NULL || ChildHandle != NULL) {\r
return EFI_UNSUPPORTED;\r
}\r
- \r
+\r
NicHandle = HttpBootGetNicByIp4Children (ControllerHandle);\r
if (NicHandle == NULL) {\r
- return EFI_UNSUPPORTED;\r
+ NicHandle = HttpBootGetNicByIp6Children(ControllerHandle);\r
+ if (NicHandle == NULL) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
}\r
\r
//\r