summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2010-06-29 01:26:28 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2010-06-29 01:26:28 +0000
commitf1f11ea29a22674d83a66746e5b87c0caea8c9ce (patch)
tree42f191bdd6b2d1ae92d0f9cf92ab823f57e927cf /MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
parent97c0d02fd653fe210b6a19771d3442abfae87066 (diff)
downloadedk2-f1f11ea29a22674d83a66746e5b87c0caea8c9ce.zip
edk2-f1f11ea29a22674d83a66746e5b87c0caea8c9ce.tar.gz
edk2-f1f11ea29a22674d83a66746e5b87c0caea8c9ce.tar.bz2
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
Diffstat (limited to 'MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h')
-rw-r--r--MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
index a34764d..7a712a1 100644
--- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
+++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
@@ -1,7 +1,7 @@
/** @file
Support routines for MTFTP.
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2010, 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
@@ -24,6 +24,8 @@ typedef struct {
LIST_ENTRY Link;
INTN Start;
INTN End;
+ INTN Round;
+ INTN Bound;
} MTFTP4_BLOCK_RANGE;
@@ -90,6 +92,7 @@ Mtftp4SetLastBlockNum (
@param Head The block range list to remove from
@param Num The block number to remove
+ @param TotalBlock The continuous block number in all
@retval EFI_NOT_FOUND The block number isn't in the block range list
@retval EFI_SUCCESS The block number has been removed from the list
@@ -99,7 +102,8 @@ Mtftp4SetLastBlockNum (
EFI_STATUS
Mtftp4RemoveBlockNum (
IN LIST_ENTRY *Head,
- IN UINT16 Num
+ IN UINT16 Num,
+ OUT UINT64 *TotalBlock
);
/**