HttpDns.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /** @file
  2. The header file of routines for HttpDxe driver to perform DNS resolution based on UEFI DNS protocols.
  3. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __EFI_HTTP_DNS_H__
  7. #define __EFI_HTTP_DNS_H__
  8. /**
  9. Retrieve the host address using the EFI_DNS4_PROTOCOL.
  10. @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
  11. @param[in] HostName Pointer to buffer containing hostname.
  12. @param[out] IpAddress On output, pointer to buffer containing IPv4 address.
  13. @retval EFI_SUCCESS Operation succeeded.
  14. @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
  15. @retval EFI_DEVICE_ERROR An unexpected network error occurred.
  16. @retval Others Other errors as indicated.
  17. **/
  18. EFI_STATUS
  19. HttpDns4 (
  20. IN HTTP_PROTOCOL *HttpInstance,
  21. IN CHAR16 *HostName,
  22. OUT EFI_IPv4_ADDRESS *IpAddress
  23. );
  24. /**
  25. Retrieve the host address using the EFI_DNS6_PROTOCOL.
  26. @param[in] HttpInstance Pointer to HTTP_PROTOCOL instance.
  27. @param[in] HostName Pointer to buffer containing hostname.
  28. @param[out] IpAddress On output, pointer to buffer containing IPv6 address.
  29. @retval EFI_SUCCESS Operation succeeded.
  30. @retval EFI_OUT_OF_RESOURCES Failed to allocate needed resources.
  31. @retval EFI_DEVICE_ERROR An unexpected network error occurred.
  32. @retval Others Other errors as indicated.
  33. **/
  34. EFI_STATUS
  35. HttpDns6 (
  36. IN HTTP_PROTOCOL *HttpInstance,
  37. IN CHAR16 *HostName,
  38. OUT EFI_IPv6_ADDRESS *IpAddress
  39. );
  40. #endif