Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Signed-off-by: Tapan Shah <tapandshah@hpe.com>
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18541
6f19259b-4bc3-4df7-8a09-
765794883524
The implementation for the 'tftp' Shell command.\r
\r
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>\r
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
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
\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
/*\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
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
EFI_HANDLE ControllerHandle;\r
EFI_HANDLE Mtftp4ChildHandle;\r
EFI_MTFTP4_PROTOCOL *Mtftp4;\r
+ *Value = (UINT16)Val;\r
\r
UnicodeSPrint (\r
NicName,\r
\r
UnicodeSPrint (\r
NicName,\r
+ EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_LENGTH,\r
SnpMode.IfType == NET_IFTYPE_ETHERNET ?\r
L"eth%d" :\r
L"unk%d" ,\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
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
\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
/** @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
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 <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
\r
#include <Protocol/ServiceBinding.h>\r
#include <Protocol/Mtftp4.h>\r