]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/HttpDxe/HttpDns.h
NetworkPkg:Enable Http Boot over Ipv6 stack
[mirror_edk2.git] / NetworkPkg / HttpDxe / HttpDns.h
CommitLineData
47f51a06
YT
1/** @file\r
2 The header file of routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.\r
3\r
4Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __EFI_HTTP_DNS_H__\r
16#define __EFI_HTTP_DNS_H__\r
17\r
18/**\r
19 Retrieve the host address using the EFI_DNS4_PROTOCOL.\r
20\r
21 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.\r
22 @param[in] HostName Pointer to buffer containing hostname.\r
23 @param[out] IpAddress On output, pointer to buffer containing IPv4 address.\r
24\r
25 @retval EFI_SUCCESS Operation succeeded.\r
26 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r
27 @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r
28 @retval Others Other errors as indicated.\r
29 \r
30**/\r
31EFI_STATUS\r
32HttpDns4 (\r
33 IN HTTP_PROTOCOL *HttpInstance,\r
34 IN CHAR16 *HostName,\r
35 OUT EFI_IPv4_ADDRESS *IpAddress \r
36 );\r
37\r
b659408b
ZL
38/**\r
39 Retrieve the host address using the EFI_DNS6_PROTOCOL.\r
40\r
41 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.\r
42 @param[in] HostName Pointer to buffer containing hostname.\r
43 @param[out] IpAddress On output, pointer to buffer containing IPv6 address.\r
44\r
45 @retval EFI_SUCCESS Operation succeeded.\r
46 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.\r
47 @retval EFI_DEVICE_ERROR An unexpected network error occurred.\r
48 @retval Others Other errors as indicated.\r
49 \r
50**/\r
51EFI_STATUS\r
52HttpDns6 (\r
53 IN HTTP_PROTOCOL *HttpInstance,\r
54 IN CHAR16 *HostName,\r
55 OUT EFI_IPv6_ADDRESS *IpAddress \r
56 );\r
57\r
47f51a06 58#endif