TianoCore EDK2 master
Loading...
Searching...
No Matches
Ip6ConfigImpl.c File Reference
#include "Ip6Impl.h"

Go to the source code of this file.

Functions

VOID EFIAPI Ip6ConfigOnDhcp6SbInstalled (IN EFI_EVENT Event, IN VOID *Context)
 
VOID Ip6ConfigOnPolicyChanged (IN IP6_SERVICE *IpSb, IN EFI_IP6_CONFIG_POLICY NewPolicy)
 
EFI_STATUS Ip6ConfigStartStatefulAutoConfig (IN IP6_CONFIG_INSTANCE *Instance, IN BOOLEAN OtherInfoOnly)
 
EFI_STATUS EFIAPI Ip6ConfigSignalEvent (IN NET_MAP *Map, IN NET_MAP_ITEM *Item, IN VOID *Arg)
 
EFI_STATUS Ip6ConfigReadConfigData (IN CHAR16 *VarName, IN OUT IP6_CONFIG_INSTANCE *Instance)
 
EFI_STATUS Ip6ConfigWriteConfigData (IN CHAR16 *VarName, IN IP6_CONFIG_INSTANCE *Instance)
 
EFI_STATUS Ip6ConfigGetIfInfo (IN IP6_CONFIG_INSTANCE *Instance, IN OUT UINTN *DataSize, IN VOID *Data OPTIONAL)
 
EFI_STATUS Ip6ConfigSetAltIfId (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS Ip6ConfigSetPolicy (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS Ip6ConfigSetDadXmits (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
VOID Ip6ManualAddrDadCallback (IN BOOLEAN IsDadPassed, IN EFI_IPv6_ADDRESS *TargetAddress, IN VOID *Context)
 
EFI_STATUS Ip6ConfigSetManualAddress (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS Ip6ConfigSetGateway (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS Ip6ConfigSetDnsServer (IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data)
 
VOID Ip6ConfigInitIfInfo (IN IP6_SERVICE *IpSb, OUT EFI_IP6_CONFIG_INTERFACE_INFO *IfInfo)
 
EFI_STATUS Ip6ConfigParseDhcpReply (IN EFI_DHCP6_PROTOCOL *Dhcp6, IN OUT IP6_CONFIG_INSTANCE *Instance, IN EFI_DHCP6_PACKET *Reply)
 
VOID Ip6ConfigSetStatefulAddrCallback (IN BOOLEAN IsDadPassed, IN EFI_IPv6_ADDRESS *TargetAddress, IN VOID *Context)
 
VOID EFIAPI Ip6ConfigOnDhcp6Event (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS EFIAPI Ip6ConfigOnDhcp6Reply (IN EFI_DHCP6_PROTOCOL *This, IN VOID *Context, IN EFI_DHCP6_PACKET *Packet)
 
EFI_STATUS EFIAPI EfiIp6ConfigSetData (IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS EFIAPI EfiIp6ConfigGetData (IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN OUT UINTN *DataSize, IN VOID *Data OPTIONAL)
 
EFI_STATUS EFIAPI EfiIp6ConfigRegisterDataNotify (IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN EFI_EVENT Event)
 
EFI_STATUS EFIAPI EfiIp6ConfigUnregisterDataNotify (IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN EFI_EVENT Event)
 
EFI_STATUS Ip6ConfigInitInstance (OUT IP6_CONFIG_INSTANCE *Instance)
 
VOID Ip6ConfigCleanInstance (IN OUT IP6_CONFIG_INSTANCE *Instance)
 
EFI_STATUS Ip6ConfigDestroyDhcp6 (IN OUT IP6_CONFIG_INSTANCE *Instance)
 

Variables

LIST_ENTRY mIp6ConfigInstanceList = { &mIp6ConfigInstanceList, &mIp6ConfigInstanceList }
 

Detailed Description

The implementation of EFI IPv6 Configuration Protocol.

Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Ip6ConfigImpl.c.

Function Documentation

◆ EfiIp6ConfigGetData()

EFI_STATUS EFIAPI EfiIp6ConfigGetData ( IN EFI_IP6_CONFIG_PROTOCOL This,
IN EFI_IP6_CONFIG_DATA_TYPE  DataType,
IN OUT UINTN DataSize,
IN VOID *Data  OPTIONAL 
)

Get the configuration data for the EFI IPv6 network stack running on the communication device that this EFI IPv6 Configuration Protocol instance manages.

This function returns the configuration data of type DataType for the EFI IPv6 network stack running on the communication device that this EFI IPv6 Configuration Protocol instance manages.

The caller is responsible for allocating the buffer used to return the specified configuration data. The required size will be returned to the caller if the size of the buffer is too small.

EFI_NOT_READY is returned if the specified configuration data is not ready due to an asynchronous configuration process already in progress. The caller can call RegisterDataNotify() to register an event on the specified configuration data. Once the asynchronous configuration process is finished, the event will be signaled, and a subsequent GetData() call will return the specified configuration data.

Parameters
[in]ThisPointer to the EFI_IP6_CONFIG_PROTOCOL instance.
[in]DataTypeThe type of data to get.
[in,out]DataSizeOn input, in bytes, the size of Data. On output, in bytes, the size of buffer required to store the specified configuration data.
[in]DataThe data buffer in which the configuration data is returned. The type of the data buffer is associated with the DataType. This is an optional parameter that may be NULL.
Return values
EFI_SUCCESSThe specified configuration data was obtained successfully.
EFI_INVALID_PARAMETEROne or more of the followings are TRUE:
  • This is NULL.
  • DataSize is NULL.
  • Data is NULL if *DataSize is not zero.
EFI_BUFFER_TOO_SMALLThe size of Data is too small for the specified configuration data, and the required size is returned in DataSize.
EFI_NOT_READYThe specified configuration data is not ready due to an asynchronous configuration process already in progress.
EFI_NOT_FOUNDThe specified configuration data is not found.

Definition at line 2091 of file Ip6ConfigImpl.c.

◆ EfiIp6ConfigRegisterDataNotify()

EFI_STATUS EFIAPI EfiIp6ConfigRegisterDataNotify ( IN EFI_IP6_CONFIG_PROTOCOL This,
IN EFI_IP6_CONFIG_DATA_TYPE  DataType,
IN EFI_EVENT  Event 
)

Register an event that is signaled whenever a configuration process on the specified configuration data is done.

This function registers an event that is to be signaled whenever a configuration process on the specified configuration data is performed. An event can be registered for a different DataType simultaneously. The caller is responsible for determining which type of configuration data causes the signaling of the event in such an event.

Parameters
[in]ThisPointer to the EFI_IP6_CONFIG_PROTOCOL instance.
[in]DataTypeThe type of data to unregister the event for.
[in]EventThe event to register.
Return values
EFI_SUCCESSThe notification event for the specified configuration data is registered.
EFI_INVALID_PARAMETERThis is NULL or Event is NULL.
EFI_UNSUPPORTEDThe configuration data type specified by DataType is not supported.
EFI_OUT_OF_RESOURCESRequired system resources could not be allocated.
EFI_ACCESS_DENIEDThe Event is already registered for the DataType.

Definition at line 2161 of file Ip6ConfigImpl.c.

◆ EfiIp6ConfigSetData()

EFI_STATUS EFIAPI EfiIp6ConfigSetData ( IN EFI_IP6_CONFIG_PROTOCOL This,
IN EFI_IP6_CONFIG_DATA_TYPE  DataType,
IN UINTN  DataSize,
IN VOID *  Data 
)

Set the configuration for the EFI IPv6 network stack running on the communication device this EFI IPv6 Configuration Protocol instance manages.

This function is used to set the configuration data of type DataType for the EFI IPv6 network stack that is running on the communication device that this EFI IPv6 Configuration Protocol instance manages.

DataSize is used to calculate the count of structure instances in the Data for a DataType in which multiple structure instances are allowed.

This function is always non-blocking. When setting some type of configuration data, an asynchronous process is invoked to check the correctness of the data, such as performing Duplicate Address Detection on the manually set local IPv6 addresses. EFI_NOT_READY is returned immediately to indicate that such an asynchronous process is invoked, and the process is not finished yet. The caller wanting to get the result of the asynchronous process is required to call RegisterDataNotify() to register an event on the specified configuration data. Once the event is signaled, the caller can call GetData() to obtain the configuration data and know the result. For other types of configuration data that do not require an asynchronous configuration process, the result of the operation is immediately returned.

Parameters
[in]ThisThe pointer to the EFI_IP6_CONFIG_PROTOCOL instance.
[in]DataTypeThe type of data to set.
[in]DataSizeSize of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set. The type of the data buffer is associated with the DataType.
Return values
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set successfully.
EFI_INVALID_PARAMETEROne or more of the following are TRUE:
  • This is NULL.
  • One or more fields in Data and DataSizedo not match the requirement of the data type indicated by DataType.
EFI_WRITE_PROTECTEDThe specified configuration data is read-only or the specified configuration data cannot be set under the current policy.
EFI_ACCESS_DENIEDAnother set operation on the specified configuration data is already in process.
EFI_NOT_READYAn asynchronous process was invoked to set the specified configuration data, and the process is not finished yet.
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type indicated by DataType.
EFI_UNSUPPORTEDThis DataType is not supported.
EFI_OUT_OF_RESOURCESRequired system resources could not be allocated.
EFI_DEVICE_ERRORAn unexpected system error or network error occurred.

Definition at line 1985 of file Ip6ConfigImpl.c.

◆ EfiIp6ConfigUnregisterDataNotify()

EFI_STATUS EFIAPI EfiIp6ConfigUnregisterDataNotify ( IN EFI_IP6_CONFIG_PROTOCOL This,
IN EFI_IP6_CONFIG_DATA_TYPE  DataType,
IN EFI_EVENT  Event 
)

Remove a previously registered event for the specified configuration data.

Parameters
ThisThe pointer to the EFI_IP6_CONFIG_PROTOCOL instance.
DataTypeThe type of data to remove from the previously registered event.
EventThe event to be unregistered.
Return values
EFI_SUCCESSThe event registered for the specified configuration data was removed.
EFI_INVALID_PARAMETERThis is NULL or Event is NULL.
EFI_NOT_FOUNDThe Event has not been registered for the specified DataType.

Definition at line 2222 of file Ip6ConfigImpl.c.

◆ Ip6ConfigCleanInstance()

VOID Ip6ConfigCleanInstance ( IN OUT IP6_CONFIG_INSTANCE Instance)

Release an IP6_CONFIG_INSTANCE.

Parameters
[in,out]InstanceThe buffer of IP6_CONFIG_INSTANCE to be freed.

Definition at line 2420 of file Ip6ConfigImpl.c.

◆ Ip6ConfigDestroyDhcp6()

EFI_STATUS Ip6ConfigDestroyDhcp6 ( IN OUT IP6_CONFIG_INSTANCE Instance)

Destroy the Dhcp6 child in IP6_CONFIG_INSTANCE and release the resources.

Parameters
[in,out]InstanceThe buffer of IP6_CONFIG_INSTANCE to be freed.
Return values
EFI_SUCCESSThe child was successfully destroyed.
OthersFailed to destroy the child.

Definition at line 2479 of file Ip6ConfigImpl.c.

◆ Ip6ConfigGetIfInfo()

EFI_STATUS Ip6ConfigGetIfInfo ( IN IP6_CONFIG_INSTANCE Instance,
IN OUT UINTN DataSize,
IN VOID *Data  OPTIONAL 
)

The work function for EfiIp6ConfigGetData() to get the interface information of the communication device this IP6Config instance manages.

Parameters
[in]InstancePointer to the IP6 config instance data.
[in,out]DataSizeOn input, in bytes, the size of Data. On output, in bytes, the size of buffer required to store the specified configuration data.
[in]DataThe data buffer in which the configuration data is returned. Ignored if DataSize is ZERO.
Return values
EFI_BUFFER_TOO_SMALLThe size of Data is too small for the specified configuration data, and the required size is returned in DataSize.
EFI_SUCCESSThe specified configuration data was obtained.

Definition at line 559 of file Ip6ConfigImpl.c.

◆ Ip6ConfigInitIfInfo()

VOID Ip6ConfigInitIfInfo ( IN IP6_SERVICE IpSb,
OUT EFI_IP6_CONFIG_INTERFACE_INFO IfInfo 
)

Generate the operational state of the interface this IP6 config instance manages and output in EFI_IP6_CONFIG_INTERFACE_INFO.

Parameters
[in]IpSbThe pointer to the IP6 service binding instance.
[out]IfInfoThe pointer to the IP6 configuration interface information structure.

Definition at line 1570 of file Ip6ConfigImpl.c.

◆ Ip6ConfigInitInstance()

EFI_STATUS Ip6ConfigInitInstance ( OUT IP6_CONFIG_INSTANCE Instance)

Initialize an IP6_CONFIG_INSTANCE.

Parameters
[out]InstanceThe buffer of IP6_CONFIG_INSTANCE to be initialized.
Return values
EFI_OUT_OF_RESOURCESFailed to allocate resources to complete the operation.
EFI_SUCCESSThe IP6_CONFIG_INSTANCE initialized successfully.

Definition at line 2268 of file Ip6ConfigImpl.c.

◆ Ip6ConfigOnDhcp6Event()

VOID EFIAPI Ip6ConfigOnDhcp6Event ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

The event handle routine when DHCPv6 process is finished or is updated.

Parameters
[in]EventNot used.
[in]ContextThe pointer to the IP6 configuration instance data.

Definition at line 1779 of file Ip6ConfigImpl.c.

◆ Ip6ConfigOnDhcp6Reply()

EFI_STATUS EFIAPI Ip6ConfigOnDhcp6Reply ( IN EFI_DHCP6_PROTOCOL This,
IN VOID *  Context,
IN EFI_DHCP6_PACKET Packet 
)

The event process routine when the DHCPv6 server is answered with a reply packet for an information request.

Parameters
[in]ThisPoints to the EFI_DHCP6_PROTOCOL.
[in]ContextThe pointer to the IP6 configuration instance data.
[in]PacketThe DHCPv6 reply packet.
Return values
EFI_SUCCESSThe DNS server address was retrieved from the reply packet.
EFI_NOT_READYThe reply packet does not contain the DNS server option, or the DNS server address is not valid.

Definition at line 1898 of file Ip6ConfigImpl.c.

◆ Ip6ConfigOnDhcp6SbInstalled()

VOID EFIAPI Ip6ConfigOnDhcp6SbInstalled ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

The event process routine when the DHCPv6 service binding protocol is installed in the system.

Parameters
[in]EventNot used.
[in]ContextPointer to the IP6 config instance data.

The event process routine when the DHCPv6 service binding protocol is installed in the system.

Parameters
[in]EventNot used.
[in]ContextThe pointer to the IP6 config instance data.

Definition at line 1917 of file Ip6ConfigImpl.c.

◆ Ip6ConfigOnPolicyChanged()

VOID Ip6ConfigOnPolicyChanged ( IN IP6_SERVICE IpSb,
IN EFI_IP6_CONFIG_POLICY  NewPolicy 
)

Update the current policy to NewPolicy. During the transition period, the default router list, on-link prefix list, autonomous prefix list and address list in all interfaces will be released.

Parameters
[in]IpSbThe IP6 service binding instance.
[in]NewPolicyThe new policy to be updated to.

Definition at line 40 of file Ip6ConfigImpl.c.

◆ Ip6ConfigParseDhcpReply()

EFI_STATUS Ip6ConfigParseDhcpReply ( IN EFI_DHCP6_PROTOCOL Dhcp6,
IN OUT IP6_CONFIG_INSTANCE Instance,
IN EFI_DHCP6_PACKET Reply 
)

Parse DHCPv6 reply packet to get the DNS server list. It is the work function for Ip6ConfigOnDhcp6Reply and Ip6ConfigOnDhcp6Event.

Parameters
[in]Dhcp6The pointer to the EFI_DHCP6_PROTOCOL instance.
[in,out]InstanceThe pointer to the IP6 configuration instance data.
[in]ReplyThe pointer to the DHCPv6 reply packet.
Return values
EFI_SUCCESSThe DNS server address was retrieved from the reply packet.
EFI_NOT_READYThe reply packet does not contain the DNS server option, or the DNS server address is not valid.

Definition at line 1601 of file Ip6ConfigImpl.c.

◆ Ip6ConfigReadConfigData()

EFI_STATUS Ip6ConfigReadConfigData ( IN CHAR16 *  VarName,
IN OUT IP6_CONFIG_INSTANCE Instance 
)

Read the configuration data from variable storage according to the VarName and gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the data is corrupted, it clears the variable data to ZERO. Otherwise, it outputs the configuration data to IP6_CONFIG_INSTANCE.

Parameters
[in]VarNameThe pointer to the variable name
[in,out]InstanceThe pointer to the IP6 config instance data.
Return values
EFI_NOT_FOUNDThe variable can not be found or already corrupted.
EFI_OUT_OF_RESOURCESFail to allocate resource to complete the operation.
EFI_SUCCESSThe configuration data was retrieved successfully.

Definition at line 347 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetAltIfId()

EFI_STATUS Ip6ConfigSetAltIfId ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the alternative interface ID for the communication device managed by this IP6Config instance, if the link local IPv6 addresses generated from the interface ID based on the default source the EFI IPv6 Protocol uses is a duplicate address.

Parameters
[in]InstancePointer to the IP6 configuration instance data.
[in]DataSizeSize of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set.
Return values
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type, 8 bytes.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 636 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetDadXmits()

EFI_STATUS Ip6ConfigSetDadXmits ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the number of consecutive Neighbor Solicitation messages sent while performing Duplicate Address Detection on a tentative address. A value of ZERO indicates that Duplicate Address Detection will not be performed on a tentative address.

Parameters
[in]InstanceThe Instance Pointer to the IP6 config instance data.
[in]DataSizeSize of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set.
Return values
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type.
EFI_ABORTEDThe new transmit count equals the current configuration.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 766 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetDnsServer()

EFI_STATUS Ip6ConfigSetDnsServer ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the DNS server list for the EFI IPv6 network stack running on the communication device that this EFI IPv6 Configuration Protocol manages. It is not configurable when the policy is Ip6ConfigPolicyAutomatic. The DNS server addresses must be unicast IPv6 addresses.

Parameters
[in]InstanceThe pointer to the IP6 config instance data.
[in]DataSizeThe size of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set, points to an array of EFI_IPv6_ADDRESS instances.
Return values
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type.
EFI_WRITE_PROTECTEDThe specified configuration data cannot be set under the current policy.
EFI_INVALID_PARAMETEROne or more fields in Data is invalid.
EFI_OUT_OF_RESOURCESFailed to allocate resources to complete the operation.
EFI_ABORTEDThe DNS server addresses to be set equal the current configuration.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 1445 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetGateway()

EFI_STATUS Ip6ConfigSetGateway ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the gateway addresses manually for the EFI IPv6 network stack that is running on the communication device that this EFI IPv6 Configuration Protocol manages. It is not configurable when the policy is Ip6ConfigPolicyAutomatic. The gateway addresses must be unicast IPv6 addresses.

Parameters
[in]InstanceThe pointer to the IP6 config instance data.
[in]DataSizeThe size of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set. This points to an array of EFI_IPv6_ADDRESS instances.
Return values
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type.
EFI_WRITE_PROTECTEDThe specified configuration data cannot be set under the current policy.
EFI_INVALID_PARAMETEROne or more fields in Data is invalid.
EFI_OUT_OF_RESOURCESFailed to allocate resource to complete the operation.
EFI_ABORTEDThe manual gateway addresses to be set equal the current configuration.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 1306 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetManualAddress()

EFI_STATUS Ip6ConfigSetManualAddress ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the station addresses manually for the EFI IPv6 network stack. It is only configurable when the policy is Ip6ConfigPolicyManual.

Parameters
[in]InstancePointer to the IP6 configuration instance data.
[in]DataSizeSize of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set.
Return values
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type.
EFI_WRITE_PROTECTEDThe specified configuration data cannot be set under the current policy.
EFI_INVALID_PARAMETEROne or more fields in Data is invalid.
EFI_OUT_OF_RESOURCESFail to allocate resource to complete the operation.
EFI_NOT_READYAn asynchronous process is invoked to set the specified configuration data, and the process is not finished.
EFI_ABORTEDThe manual addresses to be set equal current configuration.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 931 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetPolicy()

EFI_STATUS Ip6ConfigSetPolicy ( IN IP6_CONFIG_INSTANCE Instance,
IN UINTN  DataSize,
IN VOID *  Data 
)

The work function for EfiIp6ConfigSetData() to set the general configuration policy for the EFI IPv6 network stack that is running on the communication device managed by this IP6Config instance. The policy will affect other configuration settings.

Parameters
[in]InstancePointer to the IP6 config instance data.
[in]DataSizeSize of the buffer pointed to by Data in bytes.
[in]DataThe data buffer to set.
Return values
EFI_INVALID_PARAMETERThe to be set policy is invalid.
EFI_BAD_BUFFER_SIZEThe DataSize does not match the size of the type.
EFI_ABORTEDThe new policy equals the current policy.
EFI_SUCCESSThe specified configuration data for the EFI IPv6 network stack was set.

Definition at line 677 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSetStatefulAddrCallback()

VOID Ip6ConfigSetStatefulAddrCallback ( IN BOOLEAN  IsDadPassed,
IN EFI_IPv6_ADDRESS TargetAddress,
IN VOID *  Context 
)

The callback function for Ip6SetAddr. The prototype is defined as IP6_DAD_CALLBACK. It is called after Duplicate Address Detection is performed on the tentative address by DHCPv6 in Ip6ConfigOnDhcp6Event().

Parameters
[in]IsDadPassedIf TRUE, Duplicate Address Detection passes.
[in]TargetAddressThe tentative IPv6 address to be checked.
[in]ContextPointer to the IP6 configuration instance data.

Definition at line 1715 of file Ip6ConfigImpl.c.

◆ Ip6ConfigSignalEvent()

EFI_STATUS EFIAPI Ip6ConfigSignalEvent ( IN NET_MAP Map,
IN NET_MAP_ITEM Item,
IN VOID *  Arg 
)

Signal the registered event. It is the callback routine for NetMapIterate.

Parameters
[in]MapPoints to the list of registered event.
[in]ItemThe registered event.
[in]ArgNot used.

Definition at line 321 of file Ip6ConfigImpl.c.

◆ Ip6ConfigStartStatefulAutoConfig()

EFI_STATUS Ip6ConfigStartStatefulAutoConfig ( IN IP6_CONFIG_INSTANCE Instance,
IN BOOLEAN  OtherInfoOnly 
)

The work function to trigger the DHCPv6 process to perform a stateful autoconfiguration.

Parameters
[in]InstancePointer to the IP6 config instance data.
[in]OtherInfoOnlyIf FALSE, get stateful address and other information via DHCPv6. Otherwise, only get the other information.
Return values
EFI_SUCCESSThe operation finished successfully.
EFI_UNSUPPORTEDThe DHCP6 driver is not available.

Definition at line 176 of file Ip6ConfigImpl.c.

◆ Ip6ConfigWriteConfigData()

EFI_STATUS Ip6ConfigWriteConfigData ( IN CHAR16 *  VarName,
IN IP6_CONFIG_INSTANCE Instance 
)

Write the configuration data from IP6_CONFIG_INSTANCE to variable storage.

Parameters
[in]VarNameThe pointer to the variable name.
[in]InstanceThe pointer to the IP6 configuration instance data.
Return values
EFI_OUT_OF_RESOURCESFail to allocate resource to complete the operation.
EFI_SUCCESSThe configuration data is written successfully.

Definition at line 479 of file Ip6ConfigImpl.c.

◆ Ip6ManualAddrDadCallback()

VOID Ip6ManualAddrDadCallback ( IN BOOLEAN  IsDadPassed,
IN EFI_IPv6_ADDRESS TargetAddress,
IN VOID *  Context 
)

The callback function for Ip6SetAddr. The prototype is defined as IP6_DAD_CALLBACK. It is called after Duplicate Address Detection is performed for the manual address set by Ip6ConfigSetManualAddress.

Parameters
[in]IsDadPassedIf TRUE, Duplicate Address Detection passed.
[in]TargetAddressThe tentative IPv6 address to be checked.
[in]ContextPointer to the IP6 configuration instance data.

Definition at line 799 of file Ip6ConfigImpl.c.

Variable Documentation

◆ mIp6ConfigInstanceList

LIST_ENTRY mIp6ConfigInstanceList = { &mIp6ConfigInstanceList, &mIp6ConfigInstanceList }

Definition at line 13 of file Ip6ConfigImpl.c.