TianoCore EDK2 master
Loading...
Searching...
No Matches
PxeBcDhcp6GoogleTest.h File Reference
#include <Uefi.h>
#include "../PxeBcImpl.h"

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)
 

Detailed Description

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.

Function Documentation

◆ PxeBcCacheDnsServerAddresses()

EFI_STATUS PxeBcCacheDnsServerAddresses ( IN PXEBC_PRIVATE_DATA Private,
IN PXEBC_DHCP6_PACKET_CACHE Cache6 
)

Cache the DHCPv6 Server address

Parameters
[in]PrivateThe pointer to PXEBC_PRIVATE_DATA.
[in]Cache6The pointer to PXEBC_DHCP6_PACKET_CACHE.
Return values
EFI_SUCCESSCache the DHCPv6 Server address successfully.
EFI_OUT_OF_RESOURCESFailed to allocate resources.
EFI_DEVICE_ERRORFailed to cache the DHCPv6 Server address.

Cache the DHCPv6 DNS Server addresses

Parameters
[in]PrivateThe pointer to PXEBC_PRIVATE_DATA.
[in]Cache6The pointer to PXEBC_DHCP6_PACKET_CACHE.
Return values
EFI_SUCCESSCache the DHCPv6 DNS Server address successfully.
EFI_OUT_OF_RESOURCESFailed to allocate resources.
EFI_DEVICE_ERRORThe 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.

◆ PxeBcHandleDhcp6Offer()

EFI_STATUS PxeBcHandleDhcp6Offer ( IN PXEBC_PRIVATE_DATA Private)

Handle the DHCPv6 offer packet.

Parameters
[in]PrivateThe pointer to PXEBC_PRIVATE_DATA.
Return values
EFI_SUCCESSHandled the DHCPv6 offer packet successfully.
EFI_NO_RESPONSENo response to the following request packet.
EFI_OUT_OF_RESOURCESFailed to allocate resources.
EFI_BUFFER_TOO_SMALLCan't cache the offer pacet.

Definition at line 1415 of file PxeBcDhcp6.c.

◆ PxeBcRequestBootService()

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.

Parameters
[in]PrivateThe pointer to PxeBc private data.
[in]IndexPxeBc option boot item type.
Return values
EFI_SUCCESSSuccessfully discovered the boot file.
EFI_OUT_OF_RESOURCESFailed to allocate resources.
EFI_NOT_FOUNDCan't get the PXE reply packet.
OthersFailed to discover the boot file.

Definition at line 868 of file PxeBcDhcp6.c.