Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library
- Timestamp:
- Aug 12, 2020 4:09:12 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139865
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 12 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-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c
r80721 r85718 1678 1678 Free existing HeaderFields. 1679 1679 1680 @param[in] HeaderFields Pointer to array of key/value header pairs wait ting for free.1680 @param[in] HeaderFields Pointer to array of key/value header pairs waiting for free. 1681 1681 @param[in] FieldCount The number of header pairs in HeaderFields. 1682 1682 … … 1718 1718 @param[in] Url The URL of a remote host. 1719 1719 @param[out] RequestMsg Pointer to the created HTTP request message. 1720 NULL if any error occur ed.1720 NULL if any error occurred. 1721 1721 @param[out] RequestMsgSize Size of the RequestMsg (in bytes). 1722 1722 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf
r80721 r85718 30 30 [Packages] 31 31 MdePkg/MdePkg.dec 32 MdeModulePkg/MdeModulePkg.dec33 32 NetworkPkg/NetworkPkg.dec 34 33 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c
r80721 r85718 124 124 @retval EFI_SUCCESS The IP child is created and the IP protocol 125 125 interface is retrieved. 126 @retval EFI_UNSUPPORTED U psupported IpVersion.126 @retval EFI_UNSUPPORTED Unsupported IpVersion. 127 127 @retval Others The required operation failed. 128 128 … … 192 192 193 193 /** 194 This function close the previously open ned IP protocol and destroy the IP child.194 This function close the previously opened IP protocol and destroy the IP child. 195 195 196 196 @param[in] ControllerHandle The controller handle. … … 202 202 @retval EFI_SUCCESS The IP protocol is closed and the relevant IP child 203 203 is destroyed. 204 @retval EFI_UNSUPPORTED U psupported IpVersion.204 @retval EFI_UNSUPPORTED Unsupported IpVersion. 205 205 @retval Others The required operation failed. 206 206 … … 229 229 230 230 // 231 // Close the previously open ned IP protocol.231 // Close the previously opened IP protocol. 232 232 // 233 233 Status = gBS->CloseProtocol ( … … 627 627 @param[in] NotifyData Pointer to the notify data. 628 628 @param[in] Dest Pointer to the destination IP address. 629 @param[in] Override Pointer to the overrid en IP_IO data.629 @param[in] Override Pointer to the overridden IP_IO data. 630 630 631 631 @return Pointer to the data structure created to wrap the packet. If any error occurs, … … 1498 1498 1499 1499 // 1500 // De troy the Ip List used by IpIo1500 // Destroy the Ip List used by IpIo 1501 1501 // 1502 1502 … … 1578 1578 This function is called after IpIoOpen(). The data to be sent is wrapped in 1579 1579 Pkt. The IP instance wrapped in IpIo is used for sending by default but can be 1580 overrid en by Sender. Other sending configs, like source address and gateway1580 overridden by Sender. Other sending configs, like source address and gateway 1581 1581 address etc., are specified in OverrideData. 1582 1582 … … 1992 1992 This function pairs with IpIoAddIp(). The IpInfo is previously created by 1993 1993 IpIoAddIp(). The IP_IO_IP_INFO::RefCnt is decremented and the IP instance 1994 will be d stroyed if the RefCnt is zero.1994 will be destroyed if the RefCnt is zero. 1995 1995 1996 1996 @param[in] IpIo Pointer to the IP_IO instance. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf
r80721 r85718 28 28 [Packages] 29 29 MdePkg/MdePkg.dec 30 MdeModulePkg/MdeModulePkg.dec31 30 NetworkPkg/NetworkPkg.dec 32 31 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/DxeNetLib.c
r80721 r85718 37 37 38 38 // 39 // All the supported IP4 mask es in host byte order.39 // All the supported IP4 masks in host byte order. 40 40 // 41 41 GLOBAL_REMOVE_IF_UNREFERENCED IP4_ADDR gIp4AllMasks[IP4_MASK_NUM] = { … … 131 131 the SNP after use because the SNP is opened by HandleProtocol. 132 132 133 @return The point to SNP if one is properly open ned. Otherwise NULL133 @return The point to SNP if one is properly opened. Otherwise NULL 134 134 135 135 **/ … … 305 305 @param[in] Line The line of code in the File that contains the current log 306 306 @param[in] Message The log message 307 @param[in] BufLen The leng htof the Buf307 @param[in] BufLen The length of the Buf 308 308 @param[out] Buf The buffer to put the packet data 309 309 … … 481 481 482 482 @param Level The severity level of the message. 483 @param Module The Mo udle that generates the log.483 @param Module The Module that generates the log. 484 484 @param File The file that contains the log. 485 485 @param Line The exact line that contains the log. … … 519 519 520 520 // 521 // Allocate a maxi um of 1024 bytes, the caller should ensure521 // Allocate a maximum of 1024 bytes, the caller should ensure 522 522 // that the message plus the ethernet/ip/udp header is shorter 523 523 // than this … … 1130 1130 If it hasn't been removed, then continue with the next node directly. 1131 1131 This function will end the iterate and return the CallBack's last return value if error happens, 1132 or ret run EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list.1132 or return EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list. 1133 1133 1134 1134 @param[in] List The head of the list. … … 1354 1354 1355 1355 If the Recycled doubly linked list of the netmap is empty, it will try to allocate 1356 a batch of items if there are enough resources and add corresponding nodes to the begin ing1356 a batch of items if there are enough resources and add corresponding nodes to the beginning 1357 1357 of the Recycled doubly linked list of the netmap. Otherwise, it will directly remove 1358 1358 the fist node entry of the Recycled doubly linked list and return the corresponding item. … … 2183 2183 EFI_MANAGED_NETWORK_PROTOCOL *Mnp; 2184 2184 EFI_SERVICE_BINDING_PROTOCOL *MnpSb; 2185 EFI_HANDLE *SnpHandle;2185 EFI_HANDLE SnpHandle; 2186 2186 EFI_HANDLE MnpChildHandle; 2187 2187 … … 2984 2984 2985 2985 @retval EFI_SUCCESS Convert to IPv4 address successfully. 2986 @retval EFI_INVALID_PARAMETER The string is mal -formated or Ip4Address is NULL.2986 @retval EFI_INVALID_PARAMETER The string is malformatted or Ip4Address is NULL. 2987 2987 2988 2988 **/ … … 3014 3014 3015 3015 @retval EFI_SUCCESS Convert to IPv6 address successfully. 3016 @retval EFI_INVALID_PARAMETER The string is mal -formated or Ip6Address is NULL.3016 @retval EFI_INVALID_PARAMETER The string is malformatted or Ip6Address is NULL. 3017 3017 3018 3018 **/ … … 3043 3043 3044 3044 @retval EFI_SUCCESS Convert to IPv4 address successfully. 3045 @retval EFI_INVALID_PARAMETER The string is mal -formated or Ip4Address is NULL.3045 @retval EFI_INVALID_PARAMETER The string is malformatted or Ip4Address is NULL. 3046 3046 3047 3047 **/ … … 3073 3073 3074 3074 @retval EFI_SUCCESS Convert to IPv6 address successfully. 3075 @retval EFI_INVALID_PARAMETER The string is mal -formated or Ip6Address is NULL.3075 @retval EFI_INVALID_PARAMETER The string is malformatted or Ip6Address is NULL. 3076 3076 3077 3077 **/ … … 3104 3104 3105 3105 @retval EFI_SUCCESS Convert to IPv6 address successfully. 3106 @retval EFI_INVALID_PARAMETER The string is mal -formated or Ip6Address is NULL.3106 @retval EFI_INVALID_PARAMETER The string is malformatted or Ip6Address is NULL. 3107 3107 3108 3108 **/ … … 3300 3300 3301 3301 // 3302 // Step 2: Skip over unformat ed string section.3302 // Step 2: Skip over unformatted string section. 3303 3303 // 3304 3304 do { -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/DxeNetLib.inf
r80721 r85718 31 31 [Packages] 32 32 MdePkg/MdePkg.dec 33 MdeModulePkg/MdeModulePkg.dec34 33 NetworkPkg/NetworkPkg.dec 35 34 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeNetLib/NetBuffer.c
r80721 r85718 603 603 if (HeadSpace != 0) { 604 604 // 605 // Allocate an extra block to accom date the head space.605 // Allocate an extra block to accommodate the head space. 606 606 // 607 607 BlockOpNum++; … … 792 792 if (Len == 0) { 793 793 // 794 // Incre ament the index number to point to the next794 // Increment the index number to point to the next 795 795 // non-empty fragment. 796 796 // … … 1064 1064 NetbufGetByte (Nbuf, 0, &Index); 1065 1065 1066 if (( NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len) && (Index > 0)) {1066 if ((Index != 0) && (NET_HEADSPACE(&(Nbuf->BlockOp[Index])) < Len)) { 1067 1067 Index--; 1068 1068 } -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c
r80721 r85718 305 305 306 306 // 307 // Create events for vari uos asynchronous operations.307 // Create events for various asynchronous operations. 308 308 // 309 309 Status = gBS->CreateEvent ( … … 746 746 @param[in] Packet The packet to transmit. 747 747 748 @retval EFI_SUCCESS The packet is tra smitted.748 @retval EFI_SUCCESS The packet is transmitted. 749 749 @retval EFI_INVALID_PARAMETER One or more parameters are invalid. 750 750 @retval EFI_UNSUPPORTED One or more of the control options are not … … 808 808 809 809 // 810 // Tra snmit the packet.810 // Transmit the packet. 811 811 // 812 812 if (TcpIo->TcpVersion == TCP_VERSION_4) { … … 863 863 @param[in, out] TcpIo The TcpIo which wraps the socket to be destroyed. 864 864 @param[in] Packet The buffer to hold the data copy from the socket rx buffer. 865 @param[in] AsyncMode Is this receive async ronous or not.865 @param[in] AsyncMode Is this receive asynchronous or not. 866 866 @param[in] Timeout The time to wait for receiving the amount of data the Packet 867 867 can hold. Set to NULL for infinite wait. … … 870 870 @retval EFI_INVALID_PARAMETER One or more parameters are invalid. 871 871 @retval EFI_DEVICE_ERROR An unexpected network or system error occurred. 872 @retval EFI_OUT_OF_RESOURCES Failed to allocate m omery.872 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory. 873 873 @retval EFI_TIMEOUT Failed to receive the required amount of data in the 874 874 specified time period. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
r80721 r85718 28 28 [Packages] 29 29 MdePkg/MdePkg.dec 30 MdeModulePkg/MdeModulePkg.dec31 30 NetworkPkg/NetworkPkg.dec 32 31 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c
r80721 r85718 148 148 The event handle for UDP receive request. 149 149 150 It will build a NET_BUF from the rec ieved UDP data, then deliver it150 It will build a NET_BUF from the received UDP data, then deliver it 151 151 to the receiver. 152 152 … … 336 336 @param[in] CallBack The function to call when receive finished. 337 337 @param[in] Context The opaque parameter to the CallBack. 338 @param[in] HeadLen The head length to reserve rfor the packet.338 @param[in] HeadLen The head length to reserve for the packet. 339 339 340 340 @return The Wrapped request or NULL if failed to allocate resources or some errors happened. … … 411 411 @param[in] Packet The user's packet. 412 412 @param[in] EndPoint The local and remote access point. 413 @param[in] Gateway The overrid ednext hop.413 @param[in] Gateway The overridden next hop. 414 414 @param[in] CallBack The function to call when transmission completed. 415 415 @param[in] Context The opaque parameter to the call back. … … 591 591 @param[in] Configure The function to configure the created UDP child. 592 592 @param[in] UdpVersion The UDP protocol version, UDP4 or UDP6. 593 @param[in] Context The opaque parameter for the Configure fun tion.593 @param[in] Context The opaque parameter for the Configure function. 594 594 595 595 @return Newly-created UDP_IO or NULL if failed. … … 756 756 @param[in] UdpIo The UDP_IO to cancel packet. 757 757 @param[in] IoStatus The IoStatus to return to the packet owners. 758 @param[in] ToCancel The select fun tion to test whether to cancel this758 @param[in] ToCancel The select function to test whether to cancel this 759 759 packet or not. 760 760 @param[in] Context The opaque parameter to the ToCancel. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
r80721 r85718 28 28 [Packages] 29 29 MdePkg/MdePkg.dec 30 MdeModulePkg/MdeModulePkg.dec31 30 NetworkPkg/NetworkPkg.dec 32 31
Note:
See TracChangeset
for help on using the changeset viewer.