TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | HTTP_BOOT_DHCP6_OPTION_ORO |
struct | HTTP_BOOT_DHCP6_OPTION_UNDI |
struct | HTTP_BOOT_DHCP6_OPTION_ARCH |
struct | HTTP_BOOT_CLASS_ID |
struct | HTTP_BOOT_DHCP6_OPTION_VENDOR_CLASS |
union | HTTP_BOOT_DHCP6_OPTION_ENTRY |
union | HTTP_BOOT_DHCP6_PACKET |
struct | HTTP_BOOT_DHCP6_PACKET_CACHE |
Macros | |
#define | HTTP_BOOT_OFFER_MAX_NUM 16 |
#define | HTTP_BOOT_DHCP6_OPTION_MAX_NUM 16 |
#define | HTTP_BOOT_DHCP6_OPTION_MAX_SIZE 312 |
#define | HTTP_BOOT_DHCP6_PACKET_MAX_SIZE 1472 |
#define | HTTP_BOOT_IP6_ROUTE_TABLE_TIMEOUT 10 |
#define | HTTP_BOOT_DEFAULT_HOPLIMIT 64 |
#define | HTTP_BOOT_DEFAULT_LIFETIME 50000 |
#define | HTTP_BOOT_DHCP6_ENTERPRISE_NUM 343 |
#define | HTTP_BOOT_DHCP6_MAX_BOOT_FILE_SIZE 65535 |
#define | HTTP_BOOT_DHCP6_IDX_IA_NA 0 |
#define | HTTP_BOOT_DHCP6_IDX_BOOT_FILE_URL 1 |
#define | HTTP_BOOT_DHCP6_IDX_BOOT_FILE_PARAM 2 |
#define | HTTP_BOOT_DHCP6_IDX_VENDOR_CLASS 3 |
#define | HTTP_BOOT_DHCP6_IDX_DNS_SERVER 4 |
#define | HTTP_BOOT_DHCP6_IDX_MAX 5 |
#define | HTTP_CACHED_DHCP6_PACKET_MAX_SIZE (OFFSET_OF (EFI_DHCP6_PACKET, Dhcp6) + HTTP_BOOT_DHCP6_PACKET_MAX_SIZE) |
#define | GET_NEXT_DHCP6_OPTION(Opt) |
#define | GET_DHCP6_OPTION_SIZE(Pkt) ((Pkt)->Length - sizeof (EFI_DHCP6_HEADER)) |
Functions | |
EFI_STATUS | HttpBootDhcp6Sarr (IN HTTP_BOOT_PRIVATE_DATA *Private) |
EFI_STATUS | HttpBootSetIp6Policy (IN HTTP_BOOT_PRIVATE_DATA *Private) |
EFI_STATUS | HttpBootSetIp6Dns (IN HTTP_BOOT_PRIVATE_DATA *Private, IN UINTN DataLength, IN VOID *DnsServerData) |
EFI_STATUS | HttpBootSetIp6Gateway (IN HTTP_BOOT_PRIVATE_DATA *Private) |
EFI_STATUS | HttpBootSetIp6Address (IN HTTP_BOOT_PRIVATE_DATA *Private) |
Functions declaration related with DHCPv6 for HTTP boot driver.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HttpBootDhcp6.h.
#define GET_DHCP6_OPTION_SIZE | ( | Pkt | ) | ((Pkt)->Length - sizeof (EFI_DHCP6_HEADER)) |
Definition at line 90 of file HttpBootDhcp6.h.
#define GET_NEXT_DHCP6_OPTION | ( | Opt | ) |
Definition at line 86 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DEFAULT_HOPLIMIT 64 |
Definition at line 17 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DEFAULT_LIFETIME 50000 |
Definition at line 18 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_ENTERPRISE_NUM 343 |
Definition at line 20 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_BOOT_FILE_PARAM 2 |
Definition at line 25 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_BOOT_FILE_URL 1 |
Definition at line 24 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_DNS_SERVER 4 |
Definition at line 27 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_IA_NA 0 |
Definition at line 23 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_MAX 5 |
Definition at line 28 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_IDX_VENDOR_CLASS 3 |
Definition at line 26 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_MAX_BOOT_FILE_SIZE 65535 |
Definition at line 21 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_OPTION_MAX_NUM 16 |
Definition at line 13 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_OPTION_MAX_SIZE 312 |
Definition at line 14 of file HttpBootDhcp6.h.
#define HTTP_BOOT_DHCP6_PACKET_MAX_SIZE 1472 |
Definition at line 15 of file HttpBootDhcp6.h.
#define HTTP_BOOT_IP6_ROUTE_TABLE_TIMEOUT 10 |
Definition at line 16 of file HttpBootDhcp6.h.
#define HTTP_BOOT_OFFER_MAX_NUM 16 |
Definition at line 12 of file HttpBootDhcp6.h.
#define HTTP_CACHED_DHCP6_PACKET_MAX_SIZE (OFFSET_OF (EFI_DHCP6_PACKET, Dhcp6) + HTTP_BOOT_DHCP6_PACKET_MAX_SIZE) |
Definition at line 71 of file HttpBootDhcp6.h.
EFI_STATUS HttpBootDhcp6Sarr | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private | ) |
Start the S.A.R.R DHCPv6 process to acquire the IPv6 address and other Http boot information.
[in] | Private | Pointer to HTTP_BOOT private data. |
EFI_SUCCESS | The S.A.R.R process successfully finished. |
Others | Failed to finish the S.A.R.R process. |
Definition at line 943 of file HttpBootDhcp6.c.
EFI_STATUS HttpBootSetIp6Address | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private | ) |
This function will register the station IP address.
[in] | Private | The pointer to HTTP_BOOT_PRIVATE_DATA. |
EFI_SUCCESS | The new IP address has been configured successfully. |
Others | Failed to configure the address. |
Definition at line 767 of file HttpBootDhcp6.c.
EFI_STATUS HttpBootSetIp6Dns | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private, |
IN UINTN | DataLength, | ||
IN VOID * | DnsServerData | ||
) |
This function will register the default DNS addresses to the network device.
[in] | Private | The pointer to HTTP_BOOT_PRIVATE_DATA. |
[in] | DataLength | Size of the buffer pointed to by DnsServerData in bytes. |
[in] | DnsServerData | Point a list of DNS server address in an array of EFI_IPv6_ADDRESS instances. |
EFI_SUCCESS | The DNS configuration has been configured successfully. |
Others | Failed to configure the address. |
Definition at line 699 of file HttpBootDhcp6.c.
EFI_STATUS HttpBootSetIp6Gateway | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private | ) |
This function will register the IPv6 gateway address to the network device.
[in] | Private | The pointer to HTTP_BOOT_PRIVATE_DATA. |
EFI_SUCCESS | The new IP configuration has been configured successfully. |
Others | Failed to configure the address. |
Definition at line 729 of file HttpBootDhcp6.c.
EFI_STATUS HttpBootSetIp6Policy | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private | ) |
Set the IP6 policy to Automatic.
[in] | Private | The pointer to HTTP_BOOT_PRIVATE_DATA. |
EFI_SUCCESS | Switch the IP policy successfully. |
Others | Unexpected error happened. |
Definition at line 645 of file HttpBootDhcp6.c.