2015-07-07 11:09:21 +02:00
|
|
|
/** @file
|
|
|
|
The header file of routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.
|
|
|
|
|
2018-06-27 15:12:32 +02:00
|
|
|
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-07-07 11:09:21 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __EFI_HTTP_DNS_H__
|
|
|
|
#define __EFI_HTTP_DNS_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
Retrieve the host address using the EFI_DNS4_PROTOCOL.
|
|
|
|
|
|
|
|
@param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
|
|
|
|
@param[in] HostName Pointer to buffer containing hostname.
|
|
|
|
@param[out] IpAddress On output, pointer to buffer containing IPv4 address.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS Operation succeeded.
|
|
|
|
@retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
|
|
|
|
@retval EFI_DEVICE_ERROR An unexpected network error occurred.
|
|
|
|
@retval Others Other errors as indicated.
|
2018-06-27 15:12:32 +02:00
|
|
|
|
2015-07-07 11:09:21 +02:00
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
HttpDns4 (
|
2021-12-05 23:54:07 +01:00
|
|
|
IN HTTP_PROTOCOL *HttpInstance,
|
|
|
|
IN CHAR16 *HostName,
|
|
|
|
OUT EFI_IPv4_ADDRESS *IpAddress
|
2015-07-07 11:09:21 +02:00
|
|
|
);
|
|
|
|
|
2015-11-09 04:30:42 +01:00
|
|
|
/**
|
|
|
|
Retrieve the host address using the EFI_DNS6_PROTOCOL.
|
|
|
|
|
|
|
|
@param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
|
|
|
|
@param[in] HostName Pointer to buffer containing hostname.
|
|
|
|
@param[out] IpAddress On output, pointer to buffer containing IPv6 address.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS Operation succeeded.
|
|
|
|
@retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
|
|
|
|
@retval EFI_DEVICE_ERROR An unexpected network error occurred.
|
|
|
|
@retval Others Other errors as indicated.
|
2018-06-27 15:12:32 +02:00
|
|
|
|
2015-11-09 04:30:42 +01:00
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
HttpDns6 (
|
2021-12-05 23:54:07 +01:00
|
|
|
IN HTTP_PROTOCOL *HttpInstance,
|
|
|
|
IN CHAR16 *HostName,
|
|
|
|
OUT EFI_IPv6_ADDRESS *IpAddress
|
2015-11-09 04:30:42 +01:00
|
|
|
);
|
|
|
|
|
2018-06-27 15:12:32 +02:00
|
|
|
#endif
|