TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | PxeBcHandleDhcp6Offer (IN PXEBC_PRIVATE_DATA *Private) |
EFI_STATUS | PxeBcCacheDnsServerAddresses (IN PXEBC_PRIVATE_DATA *Private, IN PXEBC_DHCP6_PACKET_CACHE *Cache6) |
EFI_STATUS | PxeBcRequestBootService (IN PXEBC_PRIVATE_DATA *Private, IN UINT32 Index) |
This file exposes the internal interfaces which may be unit tested for the PxeBcDhcp6Dxe driver.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PxeBcDhcp6GoogleTest.h.
EFI_STATUS PxeBcCacheDnsServerAddresses | ( | IN PXEBC_PRIVATE_DATA * | Private, |
IN PXEBC_DHCP6_PACKET_CACHE * | Cache6 | ||
) |
Cache the DHCPv6 Server address
[in] | Private | The pointer to PXEBC_PRIVATE_DATA. |
[in] | Cache6 | The pointer to PXEBC_DHCP6_PACKET_CACHE. |
EFI_SUCCESS | Cache the DHCPv6 Server address successfully. |
EFI_OUT_OF_RESOURCES | Failed to allocate resources. |
EFI_DEVICE_ERROR | Failed to cache the DHCPv6 Server address. |
Cache the DHCPv6 DNS Server addresses
[in] | Private | The pointer to PXEBC_PRIVATE_DATA. |
[in] | Cache6 | The pointer to PXEBC_DHCP6_PACKET_CACHE. |
EFI_SUCCESS | Cache the DHCPv6 DNS Server address successfully. |
EFI_OUT_OF_RESOURCES | Failed to allocate resources. |
EFI_DEVICE_ERROR | The DNS Server Address Length provided by a untrusted option is not a multiple of 16 bytes (sizeof (EFI_IPv6_ADDRESS)). |
Definition at line 1356 of file PxeBcDhcp6.c.
EFI_STATUS PxeBcHandleDhcp6Offer | ( | IN PXEBC_PRIVATE_DATA * | Private | ) |
Handle the DHCPv6 offer packet.
[in] | Private | The pointer to PXEBC_PRIVATE_DATA. |
EFI_SUCCESS | Handled the DHCPv6 offer packet successfully. |
EFI_NO_RESPONSE | No response to the following request packet. |
EFI_OUT_OF_RESOURCES | Failed to allocate resources. |
EFI_BUFFER_TOO_SMALL | Can't cache the offer pacet. |
Definition at line 1415 of file PxeBcDhcp6.c.
EFI_STATUS PxeBcRequestBootService | ( | IN PXEBC_PRIVATE_DATA * | Private, |
IN UINT32 | Index | ||
) |
Build and send out the request packet for the bootfile, and parse the reply.
[in] | Private | The pointer to PxeBc private data. |
[in] | Index | PxeBc option boot item type. |
EFI_SUCCESS | Successfully discovered the boot file. |
EFI_OUT_OF_RESOURCES | Failed to allocate resources. |
EFI_NOT_FOUND | Can't get the PXE reply packet. |
Others | Failed to discover the boot file. |
Definition at line 868 of file PxeBcDhcp6.c.