From f1f11ea29a22674d83a66746e5b87c0caea8c9ce Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Tue, 29 Jun 2010 01:26:28 +0000 Subject: Fixed a bug in Mtftp4: to allow the block number to roll over to accept transfers of unlimited size. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10609 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c') diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c index adc6489243..4312e18c6f 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c @@ -1,7 +1,7 @@ /** @file Routines to process Wrq (upload). -Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
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 @@ -145,7 +145,8 @@ Mtftp4WrqHandleAck ( { UINT16 AckNum; INTN Expected; - + UINT64 TotalBlock; + *Completed = FALSE; AckNum = NTOHS (Packet->Ack.Block[0]); Expected = Mtftp4GetNextBlockNum (&Instance->Blocks); @@ -165,7 +166,7 @@ Mtftp4WrqHandleAck ( // tell the Mtftp4WrqInput to finish the transfer. This is the last // block number if the block range are empty.. // - Mtftp4RemoveBlockNum (&Instance->Blocks, AckNum); + Mtftp4RemoveBlockNum (&Instance->Blocks, AckNum, &TotalBlock); Expected = Mtftp4GetNextBlockNum (&Instance->Blocks); -- cgit v1.2.3