Address->v4.Addr[2] = (UINT8)AsciiStrDecimalToUintn (String);\r
String = AsciiStrStr(String, ".") + 1;\r
Address->v4.Addr[3] = (UINT8)AsciiStrDecimalToUintn (String);\r
- \r
+\r
return EFI_SUCCESS;\r
}\r
\r
EFI_STATUS Status = EFI_INVALID_PARAMETER;\r
EFI_MAC_ADDRESS Mac;\r
EFI_IP_ADDRESS Ip;\r
- \r
- if (Argc == 1) { \r
+\r
+ if (Argc == 1) {\r
// Get current IP/MAC\r
- \r
+\r
// Get current MAC address\r
Status = EblGetCurrentMacAddress (&Mac);\r
if (EFI_ERROR (Status)) {\r
goto Exit;\r
}\r
- \r
+\r
AsciiPrint ("MAC Address: %02x:%02x:%02x:%02x:%02x:%02x\n", Mac.Addr[0], Mac.Addr[1], Mac.Addr[2], Mac.Addr[3], Mac.Addr[4], Mac.Addr[5]);\r
- \r
+\r
// Get current IP address\r
Status = EblGetCurrentIpAddress (&Ip);\r
if (EFI_ERROR(Status)) {\r
AsciiPrint("IP Address is not configured.\n");\r
Status = EFI_SUCCESS;\r
goto Exit;\r
- } \r
+ }\r
\r
AsciiPrint("IP Address: %d.%d.%d.%d\n", Ip.v4.Addr[0], Ip.v4.Addr[1],Ip.v4.Addr[2], Ip.v4.Addr[3]);\r
- \r
+\r
} else if ((Argv[1][0] == 'r') && (Argc == 2)) {\r
// Get new address via dhcp\r
Status = EblPerformDHCP (TRUE);\r
if (EFI_ERROR (Status)) {\r
goto Exit;\r
}\r
- \r
+\r
Status = EblSetStationIp (&Ip, NULL);\r
}\r
- \r
+\r
Exit:\r
return Status;\r
}\r