The implementation for the 'tftp' Shell command.\r
\r
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>\r
+ Copyright (c) 2015, 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
\r
#include "UefiShellTftpCommandLib.h"\r
\r
+#define EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH 32\r
+\r
/*\r
Constant strings and definitions related to the message indicating the amount of\r
progress in the dowloading of a TFTP file.\r
EFI_HANDLE *Handles;\r
UINTN HandleCount;\r
UINTN NicNumber;\r
- CHAR16 NicName[IP4_NIC_NAME_LENGTH];\r
+ CHAR16 NicName[EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH];\r
EFI_HANDLE ControllerHandle;\r
EFI_HANDLE Mtftp4ChildHandle;\r
EFI_MTFTP4_PROTOCOL *Mtftp4;\r
return FALSE;\r
}\r
\r
- *Value = Val;\r
+ *Value = (UINT16)Val;\r
return TRUE;\r
}\r
\r
\r
UnicodeSPrint (\r
NicName,\r
- IP4_NIC_NAME_LENGTH,\r
+ EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH,\r
SnpMode.IfType == NET_IFTYPE_ETHERNET ?\r
L"eth%d" :\r
L"unk%d" ,\r
CHAR16 Progress[TFTP_PROGRESS_MESSAGE_SIZE];\r
UINT64 NbOfKb;\r
UINTN Index;\r
- UINTN LastStep;\r
- UINTN Step;\r
+ UINT64 LastStep;\r
+ UINT64 Step;\r
\r
if ((NTOHS (Packet->OpCode)) != EFI_MTFTP4_OPCODE_DATA) {\r
return EFI_SUCCESS;\r
/** @file\r
header file for NULL named library for 'tftp' Shell command functions.\r
\r
- Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved. <BR>\r
+ Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
#include <ShellBase.h>\r
\r
#include <Guid/ShellLibHiiGuid.h>\r
-#include <Guid/NicIp4ConfigNvData.h>\r
\r
#include <Protocol/ServiceBinding.h>\r
#include <Protocol/Mtftp4.h>\r