]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix ‘ifconfig’ so it will build with NIC_IP4_CONFIG_INFO.Permanent change...
authorChris Phillips <chrisp@hp.com>
Fri, 4 Oct 2013 15:38:38 +0000 (15:38 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 4 Oct 2013 15:38:38 +0000 (15:38 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14744 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c

index 5573e742383740b854a10c44db6efaceab9a2aee..f837bab4544d4170c4304bec0703acf494d1b9b2 100644 (file)
@@ -1,6 +1,7 @@
 /** @file\r
   The implementation for ifcommand shell command.\r
 \r
 /** @file\r
   The implementation for ifcommand shell command.\r
 \r
+  Copyright (c) 2013 Hewlett-Packard Development Company, L.P.\r
   Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
@@ -1388,7 +1389,7 @@ IfconfigSetNicAddr (
   }\r
 \r
   CopyMem (&Config->NicAddr, &Info->NicAddress, sizeof (NIC_ADDR));\r
   }\r
 \r
   CopyMem (&Config->NicAddr, &Info->NicAddress, sizeof (NIC_ADDR));\r
-  Config->Perment = Permanent;\r
+  Config->Permanent = Permanent;\r
 \r
   //\r
   // Use HII service to set NIC address\r
 \r
   //\r
   // Use HII service to set NIC address\r
@@ -1474,9 +1475,9 @@ IfconfigShowNicInfo (
     }\r
 \r
     ShellPrintHiiEx(-1, -1, NULL,\r
     }\r
 \r
     ShellPrintHiiEx(-1, -1, NULL,\r
-      STRING_TOKEN (STR_IFCONFIG_PERMENT_STATUS),\r
+      STRING_TOKEN (STR_IFCONFIG_PERMANENT_STATUS),\r
       gShellNetwork1HiiHandle,\r
       gShellNetwork1HiiHandle,\r
-      (NicInfo->ConfigInfo->Perment? L"TRUE":L"FALSE")\r
+      (NicInfo->ConfigInfo->Permanent? L"TRUE":L"FALSE")\r
       );\r
 \r
     Ip4Config = &NicInfo->ConfigInfo->Ip4Info;\r
       );\r
 \r
     Ip4Config = &NicInfo->ConfigInfo->Ip4Info;\r