Copyright (c) 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define DEFAULT_CLASS_ID_DATA "HTTPClient:Arch:xxxxx:UNDI:003000" |
#define DEFAULT_UNDI_MAJOR 3 |
Referenced by HttpBootBuildDhcp4Options(), PxeBcBuildDhcp4Options(), and PxeBcBuildDhcp6Options().
#define DEFAULT_UNDI_MINOR 0 |
Referenced by HttpBootBuildDhcp4Options(), PxeBcBuildDhcp4Options(), and PxeBcBuildDhcp6Options().
#define DEFAULT_UNDI_TYPE 1 |
Referenced by HttpBootBuildDhcp4Options(), PxeBcBuildDhcp4Options(), and PxeBcBuildDhcp6Options().
#define EFI_HTTP_BOOT_CLIENT_SYSTEM_ARCHITECTURE 0x000F |
HTTP Tag definition that identifies the processor and programming environment of the client system. These identifiers are defined by IETF: http://www.ietf.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml
Referenced by HttpBootBuildDhcp4Options().
#define GET_NEXT_DHCP_OPTION | ( | Opt | ) |
Value:
(EFI_DHCP4_PACKET_OPTION *) ((UINT8 *) (Opt) + \
sizeof (EFI_DHCP4_PACKET_OPTION) + (Opt)->Length - 1)
Referenced by HttpBootBuildDhcp4Options(), and PxeBcBuildDhcp4Options().
#define GET_OPTION_BUFFER_LEN | ( | Pkt | ) | ((Pkt)->Length - sizeof (EFI_DHCP4_HEADER) - 4) |
Referenced by HttpBootDhcp4CallBack(), HttpBootParseDhcp4Packet(), PxeBcDhcp4CallBack(), and PxeBcParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_MAGIC 0x63538263 |
#define HTTP_BOOT_DHCP4_MSG_TYPE_REQUEST 3 |
#define HTTP_BOOT_DHCP4_OPCODE_REPLY 2 |
#define HTTP_BOOT_DHCP4_OPCODE_REQUEST 1 |
#define HTTP_BOOT_DHCP4_OPTION_MAX_NUM 16 |
Referenced by HttpBootDhcp4Dora().
#define HTTP_BOOT_DHCP4_OPTION_MAX_SIZE 312 |
Referenced by HttpBootDhcp4Dora().
#define HTTP_BOOT_DHCP4_OVERLOAD_FILE 1 |
Referenced by HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_OVERLOAD_SERVER_NAME 2 |
Referenced by HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_PACKET_MAX_SIZE 1472 |
Referenced by HttpBootDhcp4CallBack(), and HttpBootStart().
#define HTTP_BOOT_DHCP4_TAG_ARCH 93 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_BOOTFILE 67 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_BOOTFILE_LEN 13 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_BROADCAST 28 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_CLASS_ID 60 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_CLIENT_ID 61 |
#define HTTP_BOOT_DHCP4_TAG_DNS_SERVER 6 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_DOMAINNAME 15 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_DUMP 14 |
#define HTTP_BOOT_DHCP4_TAG_EMTU 22 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_EOP 255 |
Referenced by HttpBootParseDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_EXTEND_PATH 18 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_HOSTNAME 12 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_INDEX_BOOTFILE 5 |
Referenced by HttpBootExtractUriInfo(), and HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_TAG_INDEX_BOOTFILE_LEN 0 |
#define HTTP_BOOT_DHCP4_TAG_INDEX_CLASS_ID 4 |
Referenced by HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_TAG_INDEX_DNS_SERVER 6 |
Referenced by HttpBootExtractUriInfo(), and HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_TAG_INDEX_MAX 7 |
Referenced by HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_TAG_INDEX_MSG_TYPE 2 |
#define HTTP_BOOT_DHCP4_TAG_INDEX_OVERLOAD 1 |
Referenced by HttpBootParseDhcp4Packet().
#define HTTP_BOOT_DHCP4_TAG_INDEX_SERVER_ID 3 |
#define HTTP_BOOT_DHCP4_TAG_LEASE 51 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_MAXMSG 57 |
Referenced by HttpBootDhcp4CallBack().
#define HTTP_BOOT_DHCP4_TAG_MSG_TYPE 53 |
#define HTTP_BOOT_DHCP4_TAG_NAME_SERVER 5 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_NETMASK 1 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_NIS_DOMAIN 40 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_NIS_SERVER 41 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_NTP_SERVER 42 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_OVERLOAD 52 |
#define HTTP_BOOT_DHCP4_TAG_PAD 0 |
Referenced by HttpBootParseDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_PARA_LIST 55 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_REQUEST_IP 50 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_ROOTPATH 17 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_ROUTER 3 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_SERVER_ID 54 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_T1 58 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_T2 59 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_TFTP 66 |
#define HTTP_BOOT_DHCP4_TAG_TIME_OFFSET 2 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_TIME_SERVER 4 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_TTL 23 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_UNDI 94 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_UUID 97 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP4_TAG_VENDOR 43 |
Referenced by HttpBootBuildDhcp4Options().
#define HTTP_BOOT_DHCP_RETRIES 4 |
Referenced by HttpBootDhcp4Dora().
#define HTTP_BOOT_OFFER_MAX_NUM 16 |
Referenced by HttpBootCacheDhcp4Offer(), HttpBootDhcp4CallBack(), HttpBootExtractUriInfo(), HttpBootStart(), and HttpBootStop().
enum HTTP_BOOT_OFFER_TYPE |
DHCP offer types among HTTP boot. Dhcp4 and Dhcp6 share this definition, and corresponding relatioinship is as follows: Dhcp4Discover <> Dhcp6Solicit Dhcp4Offer <> Dhcp6Advertise Dhcp4Request <> Dhcp6Request Dhcp4Ack <> DHcp6Reply
EFI_STATUS HttpBootDhcp4Dora | ( | IN HTTP_BOOT_PRIVATE_DATA * | Private | ) |
Start the D.O.R.A DHCPv4 process to acquire the IPv4 address and other Http boot information.
[in] | Private | Pointer to HTTP_BOOT private data. |
EFI_SUCCESS | The D.O.R.A process successfully finished. | |
Others | Failed to finish the D.O.R.A process. |
[in] | Private | Pointer to HTTP boot driver private data. |
EFI_SUCCESS | The D.O.R.A process successfully finished. | |
Others | Failed to finish the D.O.R.A process. |
References HTTP_BOOT_DHCP4_OPTION_MAX_NUM, HTTP_BOOT_DHCP4_OPTION_MAX_SIZE, HTTP_BOOT_DHCP_RETRIES, HttpBootBuildDhcp4Options(), HttpBootDhcp4CallBack(), HttpBootRegisterIp4Gateway(), HttpBootSetIpPolicy(), HttpBootShowIp4Addr(), and mHttpDhcpTimeout.
Referenced by HttpBootDhcp().
EFI_STATUS HttpBootRegisterIp4Dns | ( | 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_IPv4_ADDRESS instances. |
EFI_SUCCESS | The DNS configuration has been configured successfully. | |
Others | Failed to configure the address. |
Referenced by HttpBootExtractUriInfo().