TianoCore EDK2 master
Loading...
Searching...
No Matches
Dhcp6IoGoogleTest.h File Reference
#include <Uefi.h>

Go to the source code of this file.

Functions

EFI_STATUS Dhcp6SeekInnerOptionSafe (UINT16 IaType, UINT8 *Option, UINT32 OptionLen, UINT8 **IaInnerOpt, UINT16 *IaInnerLen)
 
EFI_STATUS Dhcp6SeekStsOption (IN DHCP6_INSTANCE *Instance, IN EFI_DHCP6_PACKET *Packet, OUT UINT8 **Option)
 

Detailed Description

Acts as header for private functions under test in Dhcp6Io.c

Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Dhcp6IoGoogleTest.h.

Function Documentation

◆ Dhcp6SeekInnerOptionSafe()

EFI_STATUS Dhcp6SeekInnerOptionSafe ( UINT16  IaType,
UINT8 *  Option,
UINT32  OptionLen,
UINT8 **  IaInnerOpt,
UINT16 *  IaInnerLen 
)

Seeks the Inner Options from a DHCP6 Option

Parameters
[in]IaTypeThe type of the IA option.
[in]OptionThe pointer to the DHCP6 Option.
[in]OptionLenThe length of the DHCP6 Option.
[out]IaInnerOptThe pointer to the IA inner option.
[out]IaInnerLenThe length of the IA inner option.
Return values
EFI_SUCCESSSeek the inner option successfully.
EFI_DEVICE_ERRORThe OptionLen is invalid.

◆ Dhcp6SeekStsOption()

EFI_STATUS Dhcp6SeekStsOption ( IN DHCP6_INSTANCE Instance,
IN EFI_DHCP6_PACKET Packet,
OUT UINT8 **  Option 
)

Seek StatusCode Option in package. A Status Code option may appear in the options field of a DHCP message and/or in the options field of another option. See details in section 22.13, RFC3315.

Parameters
[in]InstanceThe pointer to the Dhcp6 instance.
[in]PacketThe pointer to reply messages.
[out]OptionThe pointer to status code option.
Return values
EFI_SUCCESSSeek status code option successfully.
EFI_DEVICE_ERRORAn unexpected error.

Definition at line 796 of file Dhcp6Io.c.