TianoCore EDK2 master
|
Go to the source code of this file.
Dhcp6 internal functions declaration.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Dhcp6Io.h.
VOID Dhcp6CleanupRetry | ( | IN DHCP6_INSTANCE * | Instance, |
IN UINT32 | Scope | ||
) |
VOID Dhcp6CleanupSession | ( | IN OUT DHCP6_INSTANCE * | Instance, |
IN EFI_STATUS | Status | ||
) |
VOID EFIAPI Dhcp6ReceivePacket | ( | IN NET_BUF * | Udp6Wrap, |
IN UDP_END_POINT * | EndPoint, | ||
IN EFI_STATUS | IoStatus, | ||
IN VOID * | Context | ||
) |
The receive callback function for the Dhcp6 exchange process.
[in] | Udp6Wrap | The pointer to the received net buffer. |
[in] | EndPoint | The pointer to the udp end point. |
[in] | IoStatus | The return status from udp io. |
[in] | Context | The opaque parameter to the function. |
The receive callback function for Dhcp6 exchange process.
[in] | Udp6Wrap | The pointer to the received net buffer. |
[in] | EndPoint | The pointer to the udp end point. |
[in] | IoStatus | The return status from udp io. |
[in] | Context | The opaque parameter to the function. |
EFI_STATUS Dhcp6SeekInnerOptionSafe | ( | IN UINT16 | IaType, |
IN UINT8 * | Option, | ||
IN UINT32 | OptionLen, | ||
OUT UINT8 ** | IaInnerOpt, | ||
OUT UINT16 * | IaInnerLen | ||
) |
Seeks the Inner Options from a DHCP6 Option
[in] | IaType | The type of the IA option. |
[in] | Option | The pointer to the DHCP6 Option. |
[in] | OptionLen | The length of the DHCP6 Option. |
[out] | IaInnerOpt | The pointer to the IA inner option. |
[out] | IaInnerLen | The length of the IA inner option. |
EFI_SUCCESS | Seek the inner option successfully. |
EFI_DEVICE_ERROR | The OptionLen is invalid. On Error, the pointers are not modified |
EFI_STATUS Dhcp6SendDeclineMsg | ( | IN DHCP6_INSTANCE * | Instance, |
IN EFI_DHCP6_IA * | DecIa | ||
) |
Create the decline message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | DecIa | The pointer to the decline Ia. |
EFI_SUCCESS | Create and send the decline message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the decline message. |
Create the decline message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | DecIa | The pointer to the decline Ia. |
EFI_SUCCESS | Created and sent the decline message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the decline message. |
EFI_STATUS Dhcp6SendInfoRequestMsg | ( | IN DHCP6_INSTANCE * | Instance, |
IN DHCP6_INF_CB * | InfCb, | ||
IN BOOLEAN | SendClientId, | ||
IN EFI_DHCP6_PACKET_OPTION * | OptionRequest, | ||
IN UINT32 | OptionCount, | ||
IN EFI_DHCP6_PACKET_OPTION * | OptionList[], | ||
IN EFI_DHCP6_RETRANSMISSION * | Retransmission | ||
) |
Create the information request message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | InfCb | The pointer to the information request control block. |
[in] | SendClientId | If TRUE, the client identifier option will be included in information request message. Otherwise, the client identifier option will not be included. |
[in] | OptionRequest | The pointer to the option request option. |
[in] | OptionCount | The number options in the OptionList. |
[in] | OptionList | The array pointers to the appended options. |
[in] | Retransmission | The pointer to the retransmission control. |
EFI_SUCCESS | Create and send the info-request message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
Others | Failed to send the info-request message. |
Create the information request message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | InfCb | The pointer to the information request control block. |
[in] | SendClientId | If TRUE, the client identifier option will be included in information request message. Otherwise, the client identifier option will not be included. |
[in] | OptionRequest | The pointer to the option request option. |
[in] | OptionCount | The number options in the OptionList. |
[in] | OptionList | The array pointers to the appended options. |
[in] | Retransmission | The pointer to the retransmission control. |
EFI_SUCCESS | Created and sent the info-request message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
Others | Failed to send the info-request message. |
EFI_STATUS Dhcp6SendReleaseMsg | ( | IN DHCP6_INSTANCE * | Instance, |
IN EFI_DHCP6_IA * | RelIa | ||
) |
Create the release message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | RelIa | The pointer to the release Ia. |
EFI_SUCCESS | Create and send the release message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the release message. |
Create the release message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | RelIa | The pointer to the release Ia. |
EFI_SUCCESS | Created and sent the release message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the release message. |
EFI_STATUS Dhcp6SendRenewRebindMsg | ( | IN DHCP6_INSTANCE * | Instance, |
IN BOOLEAN | RebindRequest | ||
) |
Create the renew/rebind message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | RebindRequest | If TRUE, it is a Rebind type message. Otherwise, it is a Renew type message. |
EFI_SUCCESS | Create and send the renew/rebind message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the renew/rebind message. |
Create the renew/rebind message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | RebindRequest | If TRUE, it is a Rebind type message. Otherwise, it is a Renew type message. |
EFI_SUCCESS | Created and sent the renew/rebind message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the renew/rebind message. |
EFI_STATUS Dhcp6SendRequestMsg | ( | IN DHCP6_INSTANCE * | Instance | ) |
Create the request message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
EFI_SUCCESS | Create and send the request message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the request message. |
Create the request message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
EFI_SUCCESS | Created and sent the request message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_DEVICE_ERROR | An unexpected error. |
Others | Failed to send the request message. |
EFI_STATUS Dhcp6SendSolicitMsg | ( | IN DHCP6_INSTANCE * | Instance | ) |
Create the solicit message and send it.
[in] | Instance | The pointer to Dhcp6 instance. |
EFI_SUCCESS | Create and send the solicit message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
Others | Failed to send the solicit message. |
Create the solicit message and send it.
[in] | Instance | The pointer to the Dhcp6 instance. |
EFI_SUCCESS | Created and sent the solicit message successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
Others | Failed to send the solicit message. |
EFI_STATUS Dhcp6StartInfoRequest | ( | IN DHCP6_INSTANCE * | Instance, |
IN BOOLEAN | SendClientId, | ||
IN EFI_DHCP6_PACKET_OPTION * | OptionRequest, | ||
IN UINT32 | OptionCount, | ||
IN EFI_DHCP6_PACKET_OPTION *OptionList[] | OPTIONAL, | ||
IN EFI_DHCP6_RETRANSMISSION * | Retransmission, | ||
IN EFI_EVENT TimeoutEvent | OPTIONAL, | ||
IN EFI_DHCP6_INFO_CALLBACK | ReplyCallback, | ||
IN VOID *CallbackContext | OPTIONAL | ||
) |
Start the information request process.
[in] | Instance | The pointer to the Dhcp6 instance. |
[in] | SendClientId | If TRUE, the client identifier option will be included in information request message. Otherwise, the client identifier option will not be included. |
[in] | OptionRequest | The pointer to the option request option. |
[in] | OptionCount | The number options in the OptionList. |
[in] | OptionList | The array pointers to the appended options. |
[in] | Retransmission | The pointer to the retransmission control. |
[in] | TimeoutEvent | The event of timeout. |
[in] | ReplyCallback | The callback function when the reply was received. |
[in] | CallbackContext | The pointer to the parameter passed to the callback. |
EFI_SUCCESS | Start the info-request process successfully. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
EFI_NO_MAPPING | No source address is available for use. |
Others | Failed to start the info-request process. |