]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Add AIP IPv6 UNDI support to Shell dh
authorSamer El-Haj-Mahmoud <elhaj@hpe.com>
Tue, 22 Dec 2015 02:13:18 +0000 (02:13 +0000)
committershenshushi <shenshushi@Edk2>
Tue, 22 Dec 2015 02:13:18 +0000 (02:13 +0000)
Update Shell DH command to decode and print the value of gEfiAdapterInfoUndiIpv6SupportGuid AIP instance.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19437 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni

index 6f093ffe0e8261e989b2be837514cd7af512f0bf..4c46e5e48de719f395dff41681a907d6729fea66 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
   Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
 \r
-  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
-  (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
   Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -690,6 +690,10 @@ AdapterInformationDumpInformation (
         TempRetVal = CatSPrint (RetVal, TempStr, L"gEfiAdapterInfoSanMacAddressGuid");\r
         SHELL_FREE_NON_NULL (RetVal);\r
         RetVal = TempRetVal;\r
+      } else if (CompareGuid (&InfoTypesBuffer[GuidIndex], &gEfiAdapterInfoUndiIpv6SupportGuid)) {\r
+        TempRetVal = CatSPrint (RetVal, TempStr, L"gEfiAdapterInfoUndiIpv6SupportGuid");\r
+        SHELL_FREE_NON_NULL (RetVal);\r
+        RetVal = TempRetVal;\r
       } else {\r
 \r
         GuidStr = GetStringNameFromGuid (&InfoTypesBuffer[GuidIndex], NULL);\r
@@ -782,6 +786,19 @@ AdapterInformationDumpInformation (
                          );\r
           SHELL_FREE_NON_NULL (RetVal);\r
           RetVal = TempRetVal;\r
+        } else if (CompareGuid (&InfoTypesBuffer[GuidIndex], &gEfiAdapterInfoUndiIpv6SupportGuid) == TRUE) {\r
+          TempStr = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_UNDI_IPV6_INFO), NULL);\r
+          if (TempStr == NULL) {\r
+            goto ERROR_EXIT;\r
+          }\r
+\r
+          TempRetVal = CatSPrint (\r
+                         RetVal,\r
+                         TempStr,\r
+                         ((EFI_ADAPTER_INFO_UNDI_IPV6_SUPPORT *)InformationBlock)->Ipv6Support\r
+                         );   \r
+          SHELL_FREE_NON_NULL (RetVal);\r
+          RetVal = TempRetVal;\r
         } else {\r
           TempStr = HiiGetString (mHandleParsingHiiHandle, STRING_TOKEN(STR_UNKNOWN_INFO_TYPE), NULL);\r
           if (TempStr == NULL) {\r
index 4a19e3945057ce9a2ecba83f84709e101542fb43..52eed8604ebbc44a39730d8f820537aaf8d5361f 100644 (file)
@@ -1,7 +1,8 @@
 ##  @file\r
 #  Provides interface to advanced shell functionality for parsing both handle and protocol database.\r
-#  (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
 #  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
+#  (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
+#  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<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
   gEfiAdapterInfoMediaStateGuid                           ## SOMETIMES_CONSUMES ## GUID\r
   gEfiAdapterInfoNetworkBootGuid                          ## SOMETIMES_CONSUMES ## GUID\r
   gEfiAdapterInfoSanMacAddressGuid                        ## SOMETIMES_CONSUMES ## GUID\r
+  gEfiAdapterInfoUndiIpv6SupportGuid                      ## SOMETIMES_CONSUMES ## GUID\r
 \r
 [Pcd.common]\r
   gEfiShellPkgTokenSpaceGuid.PcdShellPrintBufferSize      ## CONSUMES\r
index f7d54855fb66f55f90b914f85f87c32c9cc314cd..3dd8896930bab40ae398c2ddde26b95923bb78bd 100644 (file)
@@ -1,7 +1,8 @@
 // /**\r
 //\r
-// (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
 // Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
+// (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.<BR>\r
+// (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 // This program and the accompanying materials\r
 // are licensed and made available under the terms and conditions of the BSD License\r
 // which accompanies this distribution. The full text of the license may be found at\r
                                                           "    iScsiIpv6Boot          : %%H%d%%N\r\n"\r
                                                           "    FCoeBoot               : %%H%d%%N\r\n"\r
 #string STR_SAN_MAC_ADDRESS_INFO          #language en-US "    SanMacAddress: %%H%02x-%02x-%02x-%02x-%02x-%02x%%N \r\n"\r
+#string STR_UNDI_IPV6_INFO                #language en-US "    UNDI IPv6 Supported: %%H%d%%N \r\n"\r
 #string STR_UNKNOWN_INFO_TYPE             #language en-US "    The 'InformationType' - %%H%g%%N can't be recongnized\r\n"\r
 \r