- ShellPrintHiiEx(-1, -1, NULL,\r
- STRING_TOKEN (STR_IFCONFIG_PERMANENT_STATUS),\r
- gShellNetwork1HiiHandle,\r
- (NicInfo->ConfigInfo->Permanent? L"TRUE":L"FALSE")\r
- );\r
-\r
- Ip4Config = &NicInfo->ConfigInfo->Ip4Info;\r
-\r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"IP address",\r
- (UINTN)Ip4Config->StationAddress.Addr[0],\r
- (UINTN)Ip4Config->StationAddress.Addr[1],\r
- (UINTN)Ip4Config->StationAddress.Addr[2],\r
- (UINTN)Ip4Config->StationAddress.Addr[3]\r
- );\r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"Mask",\r
- (UINTN)Ip4Config->SubnetMask.Addr[0],\r
- (UINTN)Ip4Config->SubnetMask.Addr[1],\r
- (UINTN)Ip4Config->SubnetMask.Addr[2],\r
- (UINTN)Ip4Config->SubnetMask.Addr[3]\r
- );\r
-\r
- ZeroMem (&Gateway, sizeof (EFI_IPv4_ADDRESS));\r
- \r
- for (Index = 0; Index < Ip4Config->RouteTableSize; Index++) {\r
- if ((CompareMem (&Ip4Config->RouteTable[Index].SubnetAddress, &mZeroIp4Addr, sizeof (EFI_IPv4_ADDRESS)) == 0) &&\r
- (CompareMem (&Ip4Config->RouteTable[Index].SubnetMask , &mZeroIp4Addr, sizeof (EFI_IPv4_ADDRESS)) == 0) ){\r
- CopyMem (&Gateway, &Ip4Config->RouteTable[Index].GatewayAddress, sizeof (EFI_IPv4_ADDRESS));\r
- }\r
- }\r
- \r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"Gateway",\r
- (UINTN)Gateway.Addr[0],\r
- (UINTN)Gateway.Addr[1],\r
- (UINTN)Gateway.Addr[2],\r
- (UINTN)Gateway.Addr[3]\r
- );\r
-\r
- ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_ROUTES_SIZE), gShellNetwork1HiiHandle, Ip4Config->RouteTableSize);\r
-\r
- for (Index = 0; Index < Ip4Config->RouteTableSize; Index++) {\r
- ShellPrintHiiEx(-1, -1, NULL,STRING_TOKEN (STR_IFCONFIG_ROUTES_ENTRY_INDEX), gShellNetwork1HiiHandle, Index);\r
-\r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"Subnet",\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetAddress.Addr[0],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetAddress.Addr[1],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetAddress.Addr[2],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetAddress.Addr[3]\r
- );\r
-\r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"Netmask",\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetMask.Addr[0],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetMask.Addr[1],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetMask.Addr[2],\r
- (UINTN)Ip4Config->RouteTable[Index].SubnetMask.Addr[3]\r
- );\r
-\r
- ShellPrintHiiEx(\r
- -1, \r
- -1, \r
- NULL,\r
- STRING_TOKEN (STR_IFCONFIG_SHOW_IP_ADDR), \r
- gShellNetwork1HiiHandle, \r
- L"Gateway",\r
- (UINTN)Ip4Config->RouteTable[Index].GatewayAddress.Addr[0],\r
- (UINTN)Ip4Config->RouteTable[Index].GatewayAddress.Addr[1],\r
- (UINTN)Ip4Config->RouteTable[Index].GatewayAddress.Addr[2],\r
- (UINTN)Ip4Config->RouteTable[Index].GatewayAddress.Addr[3]\r
- );\r
- }\r