Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c
r77662 r80721 2 2 Mtftp6 support functions implementation. 3 3 4 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR> 5 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php. 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> 5 6 SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 14 8 **/ … … 159 153 @param[in] Head The block range list to remove from. 160 154 @param[in] Num The block number to remove. 161 @param[in] Completed Whether Num is the last block number 162 @param[out] TotalBlock The continuous block number in all155 @param[in] Completed Whether Num is the last block number. 156 @param[out] BlockCounter The continuous block counter instead of the value after roll-over. 163 157 164 158 @retval EFI_NOT_FOUND The block number isn't in the block range list. … … 172 166 IN UINT16 Num, 173 167 IN BOOLEAN Completed, 174 OUT UINT64 * TotalBlock168 OUT UINT64 *BlockCounter 175 169 ) 176 170 { … … 221 215 // this solution. 222 216 // 223 * TotalBlock= Num;217 *BlockCounter = Num; 224 218 225 219 if (Range->Round > 0) { 226 * TotalBlock+= Range->Bound + MultU64x32 (Range->Round - 1, (UINT32)(Range->Bound + 1)) + 1;220 *BlockCounter += Range->Bound + MultU64x32 (Range->Round - 1, (UINT32)(Range->Bound + 1)) + 1; 227 221 } 228 222 … … 980 974 Instance->McastPort = 0; 981 975 Instance->BlkSize = 0; 976 Instance->Operation = 0; 977 Instance->WindowSize = 1; 978 Instance->TotalBlock = 0; 979 Instance->AckedBlock = 0; 982 980 Instance->LastBlk = 0; 983 981 Instance->PacketToLive = 0; … … 1052 1050 Instance->OldTpl = gBS->RaiseTPL (TPL_CALLBACK); 1053 1051 1052 Instance->Operation = OpCode; 1053 1054 1054 // 1055 1055 // Parse the extension options in the request packet. … … 1061 1061 Token->OptionCount, 1062 1062 TRUE, 1063 Instance->Operation, 1063 1064 &Instance->ExtInfo 1064 1065 ); … … 1105 1106 if (Instance->BlkSize == 0) { 1106 1107 Instance->BlkSize = MTFTP6_DEFAULT_BLK_SIZE; 1108 } 1109 if (Instance->WindowSize == 0) { 1110 Instance->WindowSize = MTFTP6_DEFAULT_WINDOWSIZE; 1107 1111 } 1108 1112 if (Instance->MaxRetry == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.