]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellNetwork1CommandsLib/Ifconfig.c
Fix spelling typo in the NIC_IP4_CONFIG_INFO.Permanent variable name, which was incor...
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork1CommandsLib / Ifconfig.c
index b4c423384908ae6f6689837d9d33d560629a2205..5573e742383740b854a10c44db6efaceab9a2aee 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The implementation for ifcommand shell command.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 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
@@ -1042,7 +1042,7 @@ TimeoutToGetMap (
 }\r
 \r
 /**\r
-  Create an IP child, use it to start the auto configuration, then destory it.\r
+  Create an IP child, use it to start the auto configuration, then destroy it.\r
 \r
   @param[in] NicInfo    The pointer to the NIC_INFO of the Nic to be configured.\r
 \r
@@ -1115,7 +1115,7 @@ IfconfigStartIp4(
     mTimeout = FALSE;\r
     Status  = gBS->CreateEvent (\r
                     EVT_NOTIFY_SIGNAL | EVT_TIMER,\r
-                    TPL_CALLBACK - 1,\r
+                    TPL_CALLBACK,\r
                     TimeoutToGetMap,\r
                     NULL,\r
                     &TimerToGetMap\r
@@ -1249,7 +1249,7 @@ IfconfigSetNicAddr (
   \r
   if (StringNoCaseCompare(&Temp, &DhcpTemp) == 0) {\r
     //\r
-    // Validate the parameter for DHCP, two valid forms: eth0 DHCP and eth0 DHCP perment\r
+    // Validate the parameter for DHCP, two valid forms: eth0 DHCP and eth0 DHCP permanent\r
     //\r
     if ((Argc != 2) && (Argc!= 3)) {\r
       ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, Temp);\r
@@ -1274,7 +1274,7 @@ IfconfigSetNicAddr (
     }\r
 \r
     if ((OldConfig != NULL) && (OldConfig->Source == IP4_CONFIG_SOURCE_DHCP) &&\r
-        (OldConfig->Perment == Permanent)) {\r
+        (OldConfig->Permanent == Permanent)) {\r
 \r
       ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_INTERFACE_CONFIGURED), gShellNetwork1HiiHandle, Info->Name);\r
       ShellStatus = SHELL_ALREADY_STARTED;\r
@@ -1285,7 +1285,7 @@ IfconfigSetNicAddr (
   } else if (StringNoCaseCompare(&Temp, &StaticTemp) == 0) {\r
     //\r
     // validate the parameter, two forms: eth0 static IP NETMASK GATEWAY and\r
-    // eth0 static IP NETMASK GATEWAY perment\r
+    // eth0 static IP NETMASK GATEWAY permanent \r
     //\r
     if ((Argc != 5) && (Argc != 6)) {\r
       ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, Temp);\r
@@ -1716,8 +1716,8 @@ ShellCommandRunIfconfig (
 \r
     //\r
     // The correct command line arguments for setting address are:\r
-    // IfConfig -s eth0 DHCP [perment]\r
-    // IfConfig -s eth0 static ip netmask gateway [perment]\r
+    // IfConfig -s eth0 DHCP [permanent]\r
+    // IfConfig -s eth0 static ip netmask gateway [permanent]\r
     //\r
     if (Item == NULL || (CountSubItems(Item) < 2) || (CountSubItems(Item) > 6) || (CountSubItems(Item) == 4)) {\r
       ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_GEN_PROBLEM_VAL), gShellNetwork1HiiHandle, L"-s");\r