@param[in] AsciiFilePath Path of the file, ASCII encoded\r
@param[in] FileSize Size of the file in number of bytes\r
@param[in] BlockSize Value of the TFTP blksize option\r
+ @param[in] WindowSize Value of the TFTP window size option\r
@param[out] Data Address where to store the address of the buffer\r
where the data of the file were downloaded in\r
case of success.\r
{ { 0, 0, 0, 0 } }, // GatewayIp - Not relevant as UseDefaultSetting=TRUE\r
{ { 0, 0, 0, 0 } }, // ServerIp - Not known yet\r
69, // InitialServerPort - Standard TFTP server port\r
- 6, // TryCount - Max number of retransmissions.\r
+ 6, // TryCount - The number of times to transmit request packets and wait for a response.\r
4 // TimeoutValue - Retransmission timeout in seconds.\r
};\r
\r
if (!StringToUint16 (ValueStr, &Mtftp4ConfigData.TryCount)) {\r
goto Error;\r
}\r
+\r
+ if (Mtftp4ConfigData.TryCount == 0) {\r
+ Mtftp4ConfigData.TryCount = 6;\r
+ }\r
}\r
\r
ValueStr = ShellCommandLineGetValue (CheckPackage, L"-t");\r
@param[in] AsciiFilePath Path of the file, ASCII encoded\r
@param[in] FileSize Size of the file in number of bytes\r
@param[in] BlockSize Value of the TFTP blksize option\r
+ @param[in] WindowSize Value of the TFTP window size option\r
@param[out] Data Address where to store the address of the buffer\r
where the data of the file were downloaded in\r
case of success.\r