]> 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 32a4f7fb43ff61666893bf079f2669a71b17b013..5573e742383740b854a10c44db6efaceab9a2aee 100644 (file)
@@ -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