Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe
- 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:
-
- 9 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/Dhcp4Dxe/Dhcp4Driver.c
r80721 r85718 327 327 328 328 // 329 // Install the Dhcp4ServiceBinding Protocol onto Control erHandle329 // Install the Dhcp4ServiceBinding Protocol onto ControllerHandle 330 330 // 331 331 Status = gBS->InstallMultipleProtocolInterfaces ( … … 439 439 if (!IsListEmpty (&DhcpSb->Children)) { 440 440 // 441 // Destroy all the children instances before dest ory the service.441 // Destroy all the children instances before destroy the service. 442 442 // 443 443 List = &DhcpSb->Children; … … 524 524 then the protocol is added to the existing UEFI handle. 525 525 526 @retval EFI_SUCCES 526 @retval EFI_SUCCESS The protocol was added to ChildHandle. 527 527 @retval EFI_INVALID_PARAMETER ChildHandle is NULL. 528 528 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create … … 618 618 @param ChildHandle Handle of the child to destroy 619 619 620 @retval EFI_SUCCES 620 @retval EFI_SUCCESS The protocol was removed from ChildHandle. 621 621 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed. 622 622 @retval EFI_INVALID_PARAMETER Child handle is NULL. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Driver.h
r80721 r85718 105 105 then the protocol is added to the existing UEFI handle. 106 106 107 @retval EFI_SUCCES 107 @retval EFI_SUCCESS The protocol was added to ChildHandle. 108 108 @retval EFI_INVALID_PARAMETER ChildHandle is NULL. 109 109 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create … … 129 129 @param ChildHandle Handle of the child to destroy 130 130 131 @retval EFI_SUCCES 131 @retval EFI_SUCCESS The protocol was removed from ChildHandle. 132 132 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed. 133 133 @retval EFI_INVALID_PARAMETER Child handle is NULL. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Dxe.inf
r80721 r85718 44 44 [Packages] 45 45 MdePkg/MdePkg.dec 46 MdeModulePkg/MdeModulePkg.dec47 46 NetworkPkg/NetworkPkg.dec 48 47 -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Impl.c
r80721 r85718 65 65 @retval EFI_ACCESS_DENIED This instance of the EFI DHCPv4 Protocol driver was not in the 66 66 Dhcp4Stopped, Dhcp4Init, Dhcp4InitReboot, or Dhcp4Bound state; 67 Or onother instance of this EFI DHCPv4 Protocol driver is already67 Or another instance of this EFI DHCPv4 Protocol driver is already 68 68 in a valid configured state. 69 69 @retval EFI_INVALID_PARAMETER Some parameter is NULL. … … 612 612 @retval EFI_ACCESS_DENIED This instance of the EFI DHCPv4 Protocol driver was not in the 613 613 Dhcp4Stopped, Dhcp4Init, Dhcp4InitReboot, or Dhcp4Bound state; 614 Or onother instance of this EFI DHCPv4 Protocol driver is already614 Or another instance of this EFI DHCPv4 Protocol driver is already 615 615 in a valid configured state. 616 616 @retval EFI_INVALID_PARAMETER Some parameter is NULL. … … 806 806 807 807 // 808 // Check Media S atus.808 // Check Media Status. 809 809 // 810 810 MediaStatus = EFI_SUCCESS; -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Io.c
r80721 r85718 605 605 606 606 @retval EFI_SUCCESS The packet is successfully processed. 607 @retval Others Some error occur ed.607 @retval Others Some error occurred. 608 608 609 609 **/ … … 633 633 // 634 634 // Call the user's callback. The action according to the return is as: 635 // 1. EFI_SUC ESS: stop waiting for more offers, select the offer now635 // 1. EFI_SUCCESS: stop waiting for more offers, select the offer now 636 636 // 2. EFI_NOT_READY: wait for more offers 637 637 // 3. EFI_ABORTED: abort the address acquiring. … … 680 680 681 681 @retval EFI_SUCCESS The packet is successfully processed. 682 @retval Others Some error occur ed.682 @retval Others Some error occurred. 683 683 684 684 **/ … … 773 773 774 774 @retval EFI_SUCCESS The packet is successfully processed. 775 @retval Others Some error occur ed.775 @retval Others Some error occurred. 776 776 777 777 **/ … … 857 857 858 858 @retval EFI_SUCCESS The packet is successfully processed. 859 @retval Others Some error occur ed.859 @retval Others Some error occurred. 860 860 861 861 **/ … … 1474 1474 Each DHCP service has three timer. Two of them are count down timer. 1475 1475 One for the packet retransmission. The other is to collect the offers. 1476 The third timer incre aments the lease life which is compared to T1, T2,1476 The third timer increments the lease life which is compared to T1, T2, 1477 1477 and lease to determine the time to renew and rebind the lease. 1478 1478 DhcpOnTimerTick will be called once every second. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Io.h
r80721 r85718 109 109 Each DHCP service has three timer. Two of them are count down timer. 110 110 One for the packet retransmission. The other is to collect the offers. 111 The third timer incre aments the lease life which is compared to T1, T2,111 The third timer increments the lease life which is compared to T1, T2, 112 112 and lease to determine the time to renew and rebind the lease. 113 113 DhcpOnTimerTick will be called once every second. -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Option.c
r80721 r85718 196 196 197 197 // 198 // Validate the occur ance of the option unit is with in [MinOccur, MaxOccur]198 // Validate the occurrence of the option unit is with in [MinOccur, MaxOccur] 199 199 // 200 200 Occur = Len / Unit; … … 231 231 232 232 @retval EFI_SUCCESS The DHCP option is successfully extracted. 233 @retval EFI_INVALID_PARAMETER The DHCP option is mal-format ed233 @retval EFI_INVALID_PARAMETER The DHCP option is mal-formatted 234 234 235 235 **/ … … 304 304 305 305 @retval EFI_SUCCESS All the options are valid 306 @retval EFI_INVALID_PARAMETER The options are mal-format ed.306 @retval EFI_INVALID_PARAMETER The options are mal-formatted. 307 307 308 308 **/ … … 377 377 @param[in] Context The opaque parameter for Check 378 378 379 @retval EFI_SUCCESS The DHCP packet's options are well format ed380 @retval EFI_INVALID_PARAMETER The DHCP packet's options are not well format ed379 @retval EFI_SUCCESS The DHCP packet's options are well formatted 380 @retval EFI_INVALID_PARAMETER The DHCP packet's options are not well formatted 381 381 382 382 **/ … … 439 439 /** 440 440 Call back function to DhcpIterateOptions to compute each option's 441 length. It just adds the data length of all the occur ances of this441 length. It just adds the data length of all the occurrences of this 442 442 Tag. Context is an array of 256 DHCP_OPTION_COUNT. 443 443 … … 474 474 @param[in] Tag The option to consolidate its data 475 475 @param[in] Len The length of option data 476 @param[in] Data The data of the option's current occur ance476 @param[in] Data The data of the option's current occurrence 477 477 @param[in] Context The context, which is DHCP_OPTION_CONTEXT. This 478 478 array is just a wrap to pass THREE parameters. … … 518 518 Parse the options of a DHCP packet. It supports RFC 3396: Encoding 519 519 Long Options in DHCP. That is, it will combine all the option value 520 of all the occur ances of each option.521 A little bit of implemen ation:520 of all the occurrences of each option. 521 A little bit of implementation: 522 522 It adopts the "Key indexed counting" algorithm. First, it allocates 523 523 an array of 256 DHCP_OPTION_COUNTs because DHCP option tag is encoded … … 539 539 @retval EFI_NOT_FOUND Cannot find any option. 540 540 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory to parse the packet. 541 @retval EFI_INVALID_PARAMETER The options are mal-format ed541 @retval EFI_INVALID_PARAMETER The options are mal-formatted 542 542 @retval EFI_SUCCESS The options are parsed into OptionPoint 543 543 … … 640 640 641 641 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory to validate the packet. 642 @retval EFI_INVALID_PARAMETER The options are mal-format ed642 @retval EFI_INVALID_PARAMETER The options are mal-formatted 643 643 @retval EFI_SUCCESS The options are parsed into OptionPoint 644 644 … … 771 771 772 772 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory 773 @retval EFI_INVALID_PARAMETER The options in SeekPacket are mal-format ed773 @retval EFI_INVALID_PARAMETER The options in SeekPacket are mal-formatted 774 774 @retval EFI_SUCCESS The packet is build. 775 775 … … 795 795 796 796 // 797 // Use an array of DHCP_OPTION to mark the exist ance797 // Use an array of DHCP_OPTION to mark the existence 798 798 // and position of each valid options. 799 799 // -
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/Dhcp4Dxe/Dhcp4Option.h
r80721 r85718 82 82 /// Structure used to describe and validate the format of DHCP options. 83 83 /// Type is the options' data type, such as DHCP_OPTION_INT8. MinOccur 84 /// is the mini um occurance of this data type. MaxOccur is defined84 /// is the minimum occurrence of this data type. MaxOccur is defined 85 85 /// similarly. If MaxOccur is -1, it means that there is no limit on the 86 /// maximum occur ance. Alert tells whether DHCP client should further86 /// maximum occurrence. Alert tells whether DHCP client should further 87 87 /// inspect the option to parse DHCP_PARAMETER. 88 88 /// … … 115 115 @param[in] Context The opaque parameter for Check 116 116 117 @retval EFI_SUCCESS The DHCP packet's options are well format ed118 @retval EFI_INVALID_PARAMETER The DHCP packet's options are not well format ed117 @retval EFI_SUCCESS The DHCP packet's options are well formatted 118 @retval EFI_INVALID_PARAMETER The DHCP packet's options are not well formatted 119 119 120 120 **/ … … 134 134 135 135 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory to validate the packet. 136 @retval EFI_INVALID_PARAMETER The options are mal-format ed136 @retval EFI_INVALID_PARAMETER The options are mal-formatted 137 137 @retval EFI_SUCCESS The options are parsed into OptionPoint 138 138 … … 147 147 Parse the options of a DHCP packet. It supports RFC 3396: Encoding 148 148 Long Options in DHCP. That is, it will combine all the option value 149 of all the occur ances of each option.150 A little bit of implemen ation:149 of all the occurrences of each option. 150 A little bit of implementation: 151 151 It adopts the "Key indexed counting" algorithm. First, it allocates 152 152 an array of 256 DHCP_OPTION_COUNTs because DHCP option tag is encoded … … 168 168 @retval EFI_NOT_FOUND Cannot find any option. 169 169 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory to parse the packet. 170 @retval EFI_INVALID_PARAMETER The options are mal-format ed170 @retval EFI_INVALID_PARAMETER The options are mal-formatted 171 171 @retval EFI_SUCCESS The options are parsed into OptionPoint 172 172 … … 212 212 213 213 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory 214 @retval EFI_INVALID_PARAMETER The options in SeekPacket are mal-format ed214 @retval EFI_INVALID_PARAMETER The options in SeekPacket are mal-formatted 215 215 @retval EFI_SUCCESS The packet is build. 216 216
Note:
See TracChangeset
for help on using the changeset viewer.