ShellPkg/TftpDynamicCommand: Add one option for tftp command to specify windowsize.
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=886 This patch is to define one new option for TFTP shell command to specify the windowsize option as defined in RFC 7440. Valid range is between 1 and 64, default value is 1. Note that: RFC 7440 does not mention max window size value, but for the stability reason, the value is limited to 64. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Carsey Jaben <jaben.carsey@intel.com> Cc: Shao Ming <ming.shao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// /**
|
||||
//
|
||||
// (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
// Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
// Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -50,7 +50,7 @@
|
||||
".SH SYNOPSIS\r\n"
|
||||
" \r\n"
|
||||
"TFTP [-i interface] [-l <port>] [-r <port>] [-c <retry count>] [-t <timeout>]\r\n"
|
||||
" [-s <block size>] host remotefilepath [localfilepath]\r\n"
|
||||
" [-s <block size>] [-w <window size>] host remotefilepath [localfilepath]\r\n"
|
||||
".SH OPTIONS\r\n"
|
||||
" \r\n"
|
||||
" -i interface - Specifies an adapter name, i.e., eth0.\r\n"
|
||||
@@ -63,6 +63,8 @@
|
||||
" sending a request packet. Default value is 4s.\r\n"
|
||||
" -s <block size> - Specifies the TFTP blksize option as defined in RFC 2348.\r\n"
|
||||
" Valid range is between 8 and 65464, default value is 512.\r\n"
|
||||
" -w <window size> - Specifies the TFTP windowsize option as defined in RFC 7440.\r\n"
|
||||
" Valid range is between 1 and 64, default value is 1.\r\n"
|
||||
" host - Specify TFTP Server IPv4 address.\r\n"
|
||||
" remotefilepath - TFTP server file path to download the file.\r\n"
|
||||
" localfilepath - Local destination file path.\r\n"
|
||||
|
Reference in New Issue
Block a user