]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/HttpDxe/HttpDns.h
2 The header file of routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.
4 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef __EFI_HTTP_DNS_H__
10 #define __EFI_HTTP_DNS_H__
13 Retrieve the host address using the EFI_DNS4_PROTOCOL.
15 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
16 @param[in] HostName Pointer to buffer containing hostname.
17 @param[out] IpAddress On output, pointer to buffer containing IPv4 address.
19 @retval EFI_SUCCESS Operation succeeded.
20 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
21 @retval EFI_DEVICE_ERROR An unexpected network error occurred.
22 @retval Others Other errors as indicated.
27 IN HTTP_PROTOCOL
*HttpInstance
,
29 OUT EFI_IPv4_ADDRESS
*IpAddress
33 Retrieve the host address using the EFI_DNS6_PROTOCOL.
35 @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
36 @param[in] HostName Pointer to buffer containing hostname.
37 @param[out] IpAddress On output, pointer to buffer containing IPv6 address.
39 @retval EFI_SUCCESS Operation succeeded.
40 @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
41 @retval EFI_DEVICE_ERROR An unexpected network error occurred.
42 @retval Others Other errors as indicated.
47 IN HTTP_PROTOCOL
*HttpInstance
,
49 OUT EFI_IPv6_ADDRESS
*IpAddress