#\r
# Copyright (c) 2014, ARM Ltd. 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
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
#\r
#**/\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
-#include <Guid/Hostname.h>\r
-\r
#define IP4_ADDR_TO_STRING(IpAddr, IpAddrString) UnicodeSPrint ( \\r
IpAddrString, \\r
16 * 2, \\r
EFI_HANDLE *HandleBuffer;\r
EFI_IP4_MODE_DATA Ip4ModeData;\r
UINTN NumHandles;\r
- UINTN HostnameSize = 256;\r
- CHAR8 Hostname[256];\r
- CHAR16 HostnameUnicode[256] = L"<no hostname>";\r
CHAR16 IpAddrString[16];\r
UINTN Index;\r
\r
255, // IPv4 Time to Live\r
{ // AccessPoint:\r
TRUE, // Use default address\r
- {0, 0, 0, 0}, // IP Address (ignored - use default)\r
- {0, 0, 0, 0}, // Subnet mask (ignored - use default)\r
+ { {0, 0, 0, 0} }, // IP Address (ignored - use default)\r
+ { {0, 0, 0, 0} }, // Subnet mask (ignored - use default)\r
FixedPcdGet32 (PcdAndroidFastbootTcpPort), // Station port\r
- {0, 0, 0, 0}, // Remote address: accept any\r
+ { {0, 0, 0, 0} }, // Remote address: accept any\r
0, // Remote Port: accept any\r
FALSE // ActiveFlag: be a "server"\r
},\r
//\r
IP4_ADDR_TO_STRING (Ip4ModeData.ConfigData.StationAddress, IpAddrString);\r
\r
- // Look up hostname\r
- Status = gRT->GetVariable (\r
- L"Hostname",\r
- &gEfiHostnameVariableGuid,\r
- NULL,\r
- &HostnameSize,\r
- &Hostname\r
- );\r
- if (!EFI_ERROR (Status) && HostnameSize != 0) {\r
- AsciiStrToUnicodeStr (Hostname, HostnameUnicode);\r
- }\r
-\r
- // Hostname variable is not null-terminated.\r
- Hostname[HostnameSize] = L'\0';\r
-\r
mTextOut->OutputString (mTextOut, L"TCP Fastboot transport configured.");\r
mTextOut->OutputString (mTextOut, L"\r\nIP address: ");\r
mTextOut->OutputString (mTextOut ,IpAddrString);\r
mTextOut->OutputString (mTextOut, L"\r\n");\r
- mTextOut->OutputString (mTextOut, L"\r\nhostname: ");\r
- mTextOut->OutputString (mTextOut, HostnameUnicode);\r
- mTextOut->OutputString (mTextOut, L"\r\n");\r
\r
//\r
// Start listening for a connection\r