summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
diff options
context:
space:
mode:
authorJiaxin Wu <Jiaxin.wu@intel.com>2018-10-25 15:16:13 +0800
committerJiaxin Wu <Jiaxin.wu@intel.com>2018-10-29 08:31:18 +0800
commit2f6693c283b54666def65e5e0d0b84e48b21cfef (patch)
tree952ac6b19caa7a9deeb2630c345b234ec49d4913 /NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
parent9202304c180e811ab7b64ccf01fe11187969fe9b (diff)
downloadedk2-2f6693c283b54666def65e5e0d0b84e48b21cfef.tar.gz
NetworkPkg/Mtftp6Dxe: Correct the total received and saved block number.
The block returned from Mtftp6RemoveBlockNum is not the total received and saved block number if it works in passive (Slave) mode. The issue was exposed by the EMS test. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
Diffstat (limited to 'NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h')
-rw-r--r--NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h b/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
index cf1b6abacc..57f4cb6f5d 100644
--- a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
+++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
@@ -83,9 +83,13 @@ struct _MTFTP6_INSTANCE {
UINT16 WindowSize;
//
- // Record the total received block number and the already acked block number.
+ // Record the total received and saved block number.
//
UINT64 TotalBlock;
+
+ //
+ // Record the acked block number.
+ //
UINT64 AckedBlock;
EFI_IPv6_ADDRESS ServerIp;