MdePkg[all]
1.08
|
Data Structures | |
struct | EFI_IP6_CONFIG_INTERFACE_INFO |
struct | EFI_IP6_CONFIG_INTERFACE_ID |
struct | EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS |
struct | EFI_IP6_CONFIG_MANUAL_ADDRESS |
struct | _EFI_IP6_CONFIG_PROTOCOL |
Macros | |
#define | EFI_IP6_CONFIG_PROTOCOL_GUID |
Typedefs | |
typedef struct _EFI_IP6_CONFIG_PROTOCOL | EFI_IP6_CONFIG_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | EFI_IP6_CONFIG_SET_DATA )(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN UINTN DataSize, IN VOID *Data) |
typedef EFI_STATUS(EFIAPI * | EFI_IP6_CONFIG_GET_DATA )(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN OUT UINTN *DataSize, IN VOID *Data) |
typedef EFI_STATUS(EFIAPI * | EFI_IP6_CONFIG_REGISTER_NOTIFY )(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN EFI_EVENT Event) |
typedef EFI_STATUS(EFIAPI * | EFI_IP6_CONFIG_UNREGISTER_NOTIFY )(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN EFI_EVENT Event) |
Variables | |
EFI_GUID | gEfiIp6ConfigProtocolGuid |
This file provides a definition of the EFI IPv6 Configuration Protocol.
Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
#define EFI_IP6_CONFIG_PROTOCOL_GUID |
typedef EFI_STATUS(EFIAPI * EFI_IP6_CONFIG_GET_DATA)(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN OUT UINTN *DataSize, IN VOID *Data) |
Get the configuration data for the EFI IPv6 network stack running on the communication device 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 this EFI IPv6 Configuration Protocol instance manages.
The caller is responsible for allocating the buffer used to return the specified configuration data and 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 already in progress asynchronous configuration process. 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.
[in] | This | Pointer to the EFI_IP6_CONFIG_PROTOCOL instance. |
[in] | DataType | The type of data to get. |
[in,out] | DataSize | On input, in bytes, the size of Data. On output, in bytes, the size of buffer required to store the specified configuration data. |
[in] | Data | The data buffer in which the configuration data is returned. The type of the data buffer is associated with the DataType. |
EFI_SUCCESS | The specified configuration data is got successfully. |
EFI_INVALID_PARAMETER | One or more of the followings are TRUE:
|
EFI_BUFFER_TOO_SMALL | The size of Data is too small for the specified configuration data and the required size is returned in DataSize. |
EFI_NOT_READY | The specified configuration data is not ready due to an already in progress asynchronous configuration process. |
EFI_NOT_FOUND | The specified configuration data is not found. |
typedef struct _EFI_IP6_CONFIG_PROTOCOL EFI_IP6_CONFIG_PROTOCOL |
typedef EFI_STATUS(EFIAPI * EFI_IP6_CONFIG_REGISTER_NOTIFY)(IN EFI_IP6_CONFIG_PROTOCOL *This, IN EFI_IP6_CONFIG_DATA_TYPE DataType, IN EFI_EVENT Event) |
Register an event that is to be 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 done. An event can be registered for different DataType simultaneously and the caller is responsible for determining which type of configuration data causes the signaling of the event in such case.
[in] | This | Pointer to the EFI_IP6_CONFIG_PROTOCOL instance. |
[in] | DataType | The type of data to unregister the event for. |
[in] | Event | The event to register. |
EFI_SUCCESS | The notification event for the specified configuration data is registered. |
EFI_INVALID_PARAMETER | This is NULL or Event is NULL. |
EFI_UNSUPPORTED | The configuration data type specified by DataType is not supported. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_ACCESS_DENIED | The Event is already registered for the DataType. |
typedef EFI_STATUS(EFIAPI * EFI_IP6_CONFIG_SET_DATA)(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 running on the communication device this EFI IPv6 Configuration Protocol instance manages.
The DataSize is used to calculate the count of structure instances in the Data for some DataType that 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 doing 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 willing 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 get back the configuration data in order to 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.
[in] | This | Pointer to the EFI_IP6_CONFIG_PROTOCOL instance. |
[in] | DataType | The type of data to set. |
[in] | DataSize | Size of the buffer pointed to by Data in bytes. |
[in] | Data | The data buffer to set. The type of the data buffer is associated with the DataType. |
EFI_SUCCESS | The specified configuration data for the EFI IPv6 network stack is set successfully. |
EFI_INVALID_PARAMETER | One or more of the following are TRUE:
|
EFI_WRITE_PROTECTED | The specified configuration data is read-only or the specified configuration data can not be set under the current policy |
EFI_ACCESS_DENIED | Another set operation on the specified configuration data is already in process. |
EFI_NOT_READY | An asynchronous process is invoked to set the specified configuration data and the process is not finished yet. |
EFI_BAD_BUFFER_SIZE | The DataSize does not match the size of the type indicated by DataType. |
EFI_UNSUPPORTED | This DataType is not supported. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected system error or network error occurred. |
typedef EFI_STATUS(EFIAPI * EFI_IP6_CONFIG_UNREGISTER_NOTIFY)(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.
This function removes a previously registered event for the specified configuration data.
[in] | This | Pointer to the EFI_IP6_CONFIG_PROTOCOL instance. |
[in] | DataType | The type of data to remove the previously registered event for. |
[in] | Event | The event to unregister. |
EFI_SUCCESS | The event registered for the specified configuration data is removed. |
EFI_INVALID_PARAMETER | This is NULL or Event is NULL. |
EFI_NOT_FOUND | The Event has not been registered for the specified DataType. |
EFI_IP6_CONFIG_DATA_TYPE
Enumerator | |
---|---|
Ip6ConfigDataTypeInterfaceInfo |
The interface information of the communication device this EFI IPv6 Configuration Protocol instance manages. This type of data is read only.The corresponding Data is of type EFI_IP6_CONFIG_INTERFACE_INFO. |
Ip6ConfigDataTypeAltInterfaceId |
The alternative interface ID for the communication device this EFI IPv6 Configuration Protocol instance manages if the link local IPv6 address generated from the interfaced ID based on the default source the EFI IPv6 Protocol uses is a duplicate address. The length of the interface ID is 64 bit. The corresponding Data is of type EFI_IP6_CONFIG_INTERFACE_ID. |
Ip6ConfigDataTypePolicy |
The general configuration policy for the EFI IPv6 network stack running on the communication device this EFI IPv6 Configuration Protocol instance manages. The policy will affect other configuration settings. The corresponding Data is of type EFI_IP6_CONFIG_POLICY. |
Ip6ConfigDataTypeDupAddrDetectTransmits |
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 tentative addresses. The corresponding Data is of type EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS. |
Ip6ConfigDataTypeManualAddress |
The station addresses set manually for the EFI IPv6 network stack. It is only configurable when the policy is Ip6ConfigPolicyManual. The corresponding Data is a pointer to an array of EFI_IPv6_ADDRESS instances. When DataSize is 0 and Data is NULL, the existing configuration is cleared from the EFI IPv6 Configuration Protocol instance. |
Ip6ConfigDataTypeGateway |
The gateway addresses set manually for the EFI IPv6 network stack running on the communication device this EFI IPv6 Configuration Protocol manages. It is not configurable when the policy is Ip6ConfigPolicyAutomatic. The gateway addresses must be unicast IPv6 addresses. The corresponding Data is a pointer to an array of EFI_IPv6_ADDRESS instances. When DataSize is 0 and Data is NULL, the existing configuration is cleared from the EFI IPv6 Configuration Protocol instance. |
Ip6ConfigDataTypeDnsServer |
The DNS server list for the EFI IPv6 network stack running on the communication device this EFI IPv6 Configuration Protocol manages. It is not configurable when the policy is Ip6ConfigPolicyAutomatic.The DNS server addresses must be unicast IPv6 addresses. The corresponding Data is a pointer to an array of EFI_IPv6_ADDRESS instances. When DataSize is 0 and Data is NULL, the existing configuration is cleared from the EFI IPv6 Configuration Protocol instance. |
Ip6ConfigDataTypeMaximum |
The number of this enumeration memebers. |
EFI_IP6_CONFIG_POLICY defines the general configuration policy the EFI IPv6 Configuration Protocol supports.
EFI_GUID gEfiIp6ConfigProtocolGuid |